Home > Article > Web Front-end > Do you know the specific usage of html tag legend? Detailed explanation of the attributes and usage of the legend tag
Do you know the specific usage of
html tag legend? Detailed explanation of the attributes and usage of the legend tag. This article describes the definition and use cases of the html legend tag, as well as the description of the html legend tag attributes.
html legendDefinition and usage examples of tag:
legend element defines the title for fieldset element
The case is as follows:
<!DOCTYPE HTML> <html> <body> <form> <fieldset> <legend>健康信息</legend> 身高:<input type="text" /> 体重:<input type="text" /> </fieldset> </form> <p>如果表单周围没有边框,说明您的浏览器太老了。</p> </body> </html>
html legendThe specific usage of tags:
fieldset and legend are actually in the web page The controls and labels used, fieldset is a control in the web page, which is equivalent to the group box, equivalent to the tab in the winform program, and legend is a label, used in conjunction with the fieldset, used to set a title for the fieldset Word.
This tag appears in pairs, starting with
A form can have multipleThe above is the detailed content of Do you know the specific usage of html tag legend? Detailed explanation of the attributes and usage of the legend tag. For more information, please follow other related articles on the PHP Chinese website!