May 04, 2021 HTML Reference Manual
Group related elements in the form:
All major browsers support the hashtags.
Labels group related elements within a form.
The label draws a border around the relevant form element.
Tip: The label defines the title for the element.
Tip: a child element of the element must be
Some new properties have been added to HTML5: disabled, form, name, which are not supported in HTML 4.01.
New : The new property in HTML5.
属性 | 值 | 描述 |
---|---|---|
disabled New | disabled | 规定该组中的相关表单元素应该被禁用。 |
form New | form_id | 规定 fieldset 所属的一个或多个表单。 |
name New | text | 规定 fieldset 的名称。 |
The label supports the global properties of HTML.
The tag supports the event properties of HTML.
HTML DOM Reference Manual: HTML DOM Fieldset Object