nerdexam
CIW

1D0-61B · Question #50

A user is submitting data from a form on your Web page to a database using a CCI script. Which attribute of the form field elements organizes the user's information into name=value pairs?

The correct answer is A. Name. Option A (Name) is correct because the name attribute on form field elements is what identifies each field when the form is submitted - the browser packages each field's data as fieldname=fieldvalue pairs (e.g., username=john). Without a name attribute, a field's data is not…

HTML5 Coding

Question

A user is submitting data from a form on your Web page to a database using a CCI script. Which attribute of the form field elements organizes the user's information into name=value pairs?

Options

  • AName
  • BForm
  • CValue
  • DMethod

How the community answered

(53 responses)
  • A
    92% (49)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Explanation

Option A (Name) is correct because the name attribute on form field elements is what identifies each field when the form is submitted - the browser packages each field's data as fieldname=fieldvalue pairs (e.g., username=john). Without a name attribute, a field's data is not included in the submission at all.

Why the distractors are wrong:

  • B. Form - form is an attribute that associates a field with a specific <form> element by ID; it does not create name=value pairs.
  • C. Value - value holds the data half of the pair (the right side of =), but it is the name attribute that supplies the label that makes the pairing meaningful.
  • D. Method - method is an attribute on the <form> element itself (e.g., GET or POST) that controls how data is sent, not what identifies each field.

Memory tip: Think of a name tag at a conference - the name attribute is the label on the tag that tells the server who is submitting what. No name tag, no identification.

Topics

#HTML forms#name attribute#form submission#form data structure

Community Discussion

No community discussion yet for this question.

Full 1D0-61B Practice