Question 1
Which input type allows users to select one option only from multiple choices?
checkbox
text
radio
submit
Question 2
What does the enctype="multipart/form-data" attribute do in a form Tag?
Submits data in plain text
Allows file uploads like images or documents
Encodes data for GET requests
Automatically validates the form
Question 3
What is the primary purpose of the label tag in HTML?
To style text as bold
To provide a caption for form inputs and improve accessibility
To add images to forms
To validate input data
Question 4
Where is the default text placed in a textarea element?
In the placeholder attribute only
Between the opening and closing <textarea> tags
In the value attribute
In the name attribute
Question 5
Which HTML element attribute value should the form attribute of fieldset match?
The name of a <fieldset>
The class of the <form>
The id of the <form>
The method of the <form>
Question 6
Which attribute is required on datalist to link it to an input?
name
id
value
type
Question 7
Which key difference distinguishes the <button> tag from <input type="button"> in terms of content handling?
<button> allows nested content like images or HTML elements
<input> allows embedding images and HTML elements
<input> supports multiple child elements within it
<button> supports only plain text labels inside
Question 8
Which attribute ensures that a user must select a value from a <select> dropdown before form submission?
autofocus
multiple
disabled
required
Question 9
In a dropdown with a placeholder option, which combination correctly defines a non-selectable default option?
value="none" required selected
value="" multiple selected
value="" disabled selected
value="default" selected
Question 10
Which attribute ensures that an input field's value is included when form data is submitted to the server?
target
name
method
id
There are 15 questions to complete.