1D0-720 · Question #108
Which HTML5 attribute specifies where to send form data on submission?
The correct answer is B. action. The action attribute specifies the URL where form data is sent when the form is submitted (e.g., <form action="/submit">), making B correct. The method attribute (A) controls how data is sent (GET or POST), not where. The type attribute (C) describes the input or button type…
Question
Which HTML5 attribute specifies where to send form data on submission?
Options
- Amethod
- Baction
- Ctype
- Denctype
How the community answered
(22 responses)- A9% (2)
- B86% (19)
- C5% (1)
Explanation
The action attribute specifies the URL where form data is sent when the form is submitted (e.g., <form action="/submit">), making B correct. The method attribute (A) controls how data is sent (GET or POST), not where. The type attribute (C) describes the input or button type, not a destination. The enctype attribute (D) defines how form data is encoded before sending (e.g., multipart/form-data for file uploads), but again says nothing about the destination.
Memory tip: Think action = the destination of the action - just like a movie's action scene moves the plot to a new location, action moves your data to a new URL.
Topics
Community Discussion
8The answer is B, action. The action attribute on a form element holds the URL the browser sends the form data to when the user submits, which is exactly what "where to send" means, while method controls how it is sent, enctype controls how it is encoded, and type is not a form-level attribute that affects submission destination.
Ingrid is right that action holds the destination URL, but worth adding that if action is omitted entirely, the browser defaults to the current page URL, which is a common source of confusion for beginners who think nothing is being submitted anywhere.
enctype controls where data goes, so D is the one.
enctype controls how form data is encoded for transmission, not where it goes. The "where it goes" part is handled by the action attribute, so B is the right pick.
Has to be D, enctype, because that attribute is specifically tied to how the form packages and sends its data to the server, which is the whole point of the submission process. I drilled this one hard last week and every practice breakdown I saw pointed to enctype as the attribute controlling where and how that data gets dispatched.
Lena, the enctype attribute controls how form data is encoded before sending, but it is the action attribute that determines where the data gets sent, which is the destination URL for the submission, so B is the correct pick here.
Enctype controls where the data goes, D all the way.
Enctype actually controls how the form data is encoded for transmission, not where it goes, so B is the right pick. The destination is handled by the action attribute, which is a separate concept worth putting on its own card.