English

A label’s for attribute should match the input’s ______.

Advertisements
Advertisements

Question

A label’s for attribute should match the input’s ______.

Options

  • type

  • id

  • name

  • size

MCQ
Fill in the Blanks
Advertisements

Solution

A label’s for attribute should match the input’s id.

Explanation:

A <label> tag’s for attribute and the attached input element’s id attribute must match. A label that provides a textual description or caption for the input field can be linked to a form control using the for attribute.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: HTML- III: Audio, Video and Forms - Assignment [Page 233]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 5 HTML- III: Audio, Video and Forms
Assignment | Q 9. | Page 233
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×