Why use

前端 未结 8 1992
时光说笑
时光说笑 2020-12-13 23:58

From a presentation perspective, if I write a text between a tag it looks identical as to if I hadn\'t.

So, why do we use this tag at all?

8条回答
  •  感情败类
    2020-12-14 00:44

    From HTML label tag:

    "The label element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the label element, it toggles the control.

    The for attribute of the tag should be equal to the id attribute of the related element to bind them together."

提交回复
热议问题