Maarten
Maarten

Reputation: 4671

Is it possible/allowed to use an id with a label tag

can I use a label in an html form with and id or a class? Not sure how to interpret the HTML 4.0.1 specs on this matter, and the web is no use with a lot of differing opinions / uses

Upvotes: 0

Views: 39

Answers (1)

Scott
Scott

Reputation: 2793

Absolutely, yes, you can use IDs and classes on <label> elements. They're styleable through CSS just like any other HTML element.

Upvotes: 2

Related Questions