1D0-610 · Question #42
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…
The correct answer is B. Name. B (Name) is correct because the name attribute on a form field element is what labels each piece of user input, creating the name=value pairs (e.g., username=john) that the browser sends to the server - without it, the server has no way to identify which value belongs to which…
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
(30 responses)- A3% (1)
- B93% (28)
- D3% (1)
Explanation
B (Name) is correct because the name attribute on a form field element is what labels each piece of user input, creating the name=value pairs (e.g., username=john) that the browser sends to the server - without it, the server has no way to identify which value belongs to which field.
A (Type) is wrong because type only defines what kind of input is rendered (text box, checkbox, radio button, etc.) - it has nothing to do with organizing or labeling submitted data. C (Value) is the right-hand side of the pair (the actual data the user enters or a preset default), but it cannot form a pair on its own without a name to anchor it. D (Input) is wrong because input is the HTML element itself, not an attribute - it's the container, not the organizer.
Memory tip: Think of a name tag at a conference - the name attribute is like the label on the tag that tells the server who the data belongs to; the value is the person's actual information written on it.
Topics
Community Discussion
No community discussion yet for this question.