Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is the purpose of the <label> tag?
A. Adds a caption to an image
B. Creates a heading
C. Styles text
D. Defines a label for an input element
Direction: Choose the correct option

Q2.

<label for="username">Username:</label>
<input type="text" id="username">
What does the for attribute connect to?
A. The input's id
B. The input's class
C. The input's name
D. Any input
Direction: Choose the correct option

Q3.

What happens when you click on a properly connected label?
A. A new window opens
B. The form submits
C. Nothing happens
D. The associated input gets focus
Direction: Choose the correct option

Q4.

Can an input be nested inside a label?
A. Only for text inputs
B. No
C. Yes
D. Only for checkboxes
Direction: Choose the correct option

Q5.

Why are labels important for accessibility?
A. Screen readers announce them as input descriptions
B. They make pages load faster
C. They validate input
D. They add styling