The best HTML <fieldset> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Tips and Notes,Differences between HTML 4.01 and HTML5,Attributes,Global Properties,Event Properties,
To form a grouping related elements:
All major browsers support <fieldset> tag.
<Fieldset> tag can be associated elements in the form of packets.
<Fieldset> tag draws a border around the related form elements.
Tip: <Legend> tag for the <fieldset> element defines the title.
HTML5 add some <fieldset> new attribute: disabled, form, name, HTML 4.01 does not support these attributes.
New: HTML5 new property.
属性 | 值 | 描述 |
---|---|---|
disabled New | disabled | 规定该组中的相关表单元素应该被禁用。 |
form New | form_id | 规定 fieldset 所属的一个或多个表单。 |
name New | text | 规定 fieldset 的名称。 |
<fieldset> tag supports HTML global properties .
<fieldset> tag supports HTML event properties .