nerdexam
CIW

1D0-61B · Question #27

Philip creates a Web form in HTNL5, but the data will not process. He has the method attribute included in the <form> element. What is missing?

The correct answer is C. The act/on attribute of the <form> element. Option C is correct because the action attribute tells the form where to send the data - without it, the browser has no destination URL to submit the form to, so processing never occurs. Option A is wrong because <form> has no meaningful type attribute. Option B is partially…

HTML5 Coding

Question

Philip creates a Web form in HTNL5, but the data will not process. He has the method attribute included in the <form> element. What is missing?

Options

  • AThe type attribute of the <form> element
  • BThe type attribute of the <input'element
  • CThe act/on attribute of the <form> element
  • DThe act/on attribute of the <input'element

How the community answered

(44 responses)
  • A
    5% (2)
  • C
    93% (41)
  • D
    2% (1)

Explanation

Option C is correct because the action attribute tells the form where to send the data - without it, the browser has no destination URL to submit the form to, so processing never occurs. Option A is wrong because <form> has no meaningful type attribute. Option B is partially relevant (inputs do use type), but a missing input type won't prevent the entire form from submitting - it just affects how that field behaves. Option D is wrong because action is not an attribute of <input> at all; it belongs exclusively to <form>.

Memory tip: Think of method as how the data travels (GET/POST) and action as where it goes - you need both, like addressing an envelope (action) and choosing how to mail it (method).

Topics

#HTML5 form attributes#form method and action#form submission

Community Discussion

No community discussion yet for this question.

Full 1D0-61B Practice