Chapter 9: Forms in HTML
Chapter 9: Forms in HTML
Fill in the Blanks
- The <form> tag is used to create _______.
- Text input fields are created using the <input> tag with _______ attribute.
- A submit button is created using <input> with _______ attribute.
- The action attribute defines the _______ where form data is sent.
- The <textarea> tag is used for _______ text input.
Answer: forms
Answer: type="text"
Answer: type="submit"
Answer: URL
Answer: multi-line
True or False
- The <input> tag can create both text fields and buttons.
- The action attribute is optional in forms.
- Forms cannot contain dropdown menus.
- The <textarea> tag is used for single-line text input.
- Buttons are created using the <button> tag.
Answer: True
Answer: True
Answer: False
Answer: False
Answer: True
Answer in One Sentence
- What is the purpose of the <form> tag?
- How do you create a text input field in a form?
- What is the function of the action attribute?
- Which tag is used for multi-line text input?
- How do you create a submit button in a form?
Answer: The <form> tag is used to create forms in HTML.
Answer: You use the <input> tag with type="text" to create a text input field.
Answer: The action attribute specifies the URL where form data is sent upon submission.
Answer: The <textarea> tag is used for multi-line text input.
Answer: You create a submit button using <input> with type="submit".
Match the Following
Element | Function |
---|---|
<form> | Creates a form |
<input> | Creates form elements |
action | Specifies form submission URL |
<textarea> | Multi-line text input |
<button> | Creates clickable buttons |
Comments
Post a Comment