开发者

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

开发者 https://www.devze.com 2023-03-30 15:40 出处:网络
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开发者_JAVA技巧Abs

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开发者_JAVA技巧


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

0

精彩评论

暂无评论...
验证码 换一张
取 消