Home >Web Front-end >CSS Tutorial >You may not know how to use Label_Experience exchange
The Label tag in HTML may be unfamiliar to those who have not been exposed to standards. Even if they are exposed to the standard, many people just use it as a container to interpret the elements in the form. I won’t go into the conceptual stuff here. If you are interested, you can refer to the tutorials on W3.
I just want to talk about the usage of For in Label. I have used it a few times on the Chinese website in the past two days, and it is quite fun. As in the example below, for "quite agree", try to click on the text to read. If you really feel "nit-picky", then please go and describe Little Braji's RedioBox.
Quite agree, I am really picky
The corresponding code above is as follows. In fact, it is not mysterious. It just adds a for attribute to the label, and the attribute value inside is the form element that needs to be associated. ID.