1D0-61B · Question #19
When the user clicks the Submit Query button on a form, the browser sends the information entered in the form to the Web server as a raw text string. The basic element of a raw text string is a name…
The correct answer is B. Name. Option B (Name) is correct because the name attribute is what labels each form field, creating the name=value pair that gets sent to the server - for example, username=john where username is the name attribute value and john is what the user typed. Option A (Type) is wrong…
Question
When the user clicks the Submit Query button on a form, the browser sends the information entered in the form to the Web server as a raw text string. The basic element of a raw text string is a name = value pair. A CGI script parses and formats the raw text string into a human-readable format. Which attribute of the form field elements organizes information input by the user into name = value pairs?
Options
- AType
- BName
- CValue
- DInput
How the community answered
(32 responses)- B94% (30)
- C3% (1)
- D3% (1)
Explanation
Option B (Name) is correct because the name attribute is what labels each form field, creating the name=value pair that gets sent to the server - for example, username=john where username is the name attribute value and john is what the user typed.
Option A (Type) is wrong because type only defines what kind of input field is rendered (text, checkbox, radio, etc.) - it has nothing to do with how data is labeled in the submitted string. Option C (Value) is the other half of the pair (the user's input or a preset value), but it doesn't organize or identify the data - it can't stand alone without a name. Option D (Input) is wrong because input is the HTML element itself, not an attribute, and it plays no role in naming the data.
Memory tip: Think of a name tag at a conference - the name attribute is the label on the tag that identifies who the data belongs to, while value is the actual information written on it. No label = the server has no idea what it received.
Topics
Community Discussion
No community discussion yet for this question.