HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML for Attribute

HTML for Attribute

 

 

The for attribute specifies which form element a label is bound to when used with the label element and it specifies the relationship between the result of the calculation and the element used in the calculation when used with the output element.

 

Used With:-

 

Elements Attribute
label for
output for

 

Syntax:-

 

Its syntax is:- < element for="value" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML