Podcast
Questions and Answers
Which HTML element is used to create a form?
Which HTML element is used to create a form?
- <p>
- <form> (correct)
- <input>
- <div>
Which attribute is used to specify the HTTP method to be used when submitting a form?
Which attribute is used to specify the HTTP method to be used when submitting a form?
- method (correct)
- target
- name
- action
What is the purpose of the 'action' attribute in an HTML form?
What is the purpose of the 'action' attribute in an HTML form?
- To set the initial value of an input field
- To specify the URL where the form data should be submitted (correct)
- To specify the HTTP method to be used when submitting the form
- To define the type of form element to be used