Home>Article> What is the function of label label?

What is the function of label label?

coldplay.xixi
coldplay.xixi Original
2020-12-14 09:52:26 38893browse

The label label improves usability for mouse users. When the user clicks on the text in the [

What is the function of label label?

The operating environment of this article: windows10 system, html5, thinkpad t480 computer.

The function of the label label:

1.

In html, < The ;label> tag is usually used together with thetag, which defines a label (marker) for the input element.

The purpose of the

2.

Description:

The id of the associated control generally refers to The id of the input element;

There is also a new attribute form in HTML5. The form attribute is used to specify the id list of one or more forms to which it belongs, separated by spaces;

When the

, you need to use the form attribute to specify the form to which it belongs;

3. Example

html中label标签的详细介绍

Running results :

What is the function of label label?

Related free learning recommendations:php programming(video)

The above is the detailed content of What is the function of label label?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn