HTML <fieldset> tagHTML <fieldset> tag is used to group the logically related fields/labels contained within an HTML form. The use of this tag is optional while creating an HTML form but using <filedset>, it is easy to understand the purpose of grouped elements of form. The <legend> tag is used with the <fieldset> element as a first child to define the caption for the grouped related fields. SyntaxFollowing are some specifications about the HTML <fieldset> tag
Example 1Test it NowOutput: Attribute= New in HTML5. Tag-specific attribute
Global attributeHTML < fieldset > tag supports the global attributes in HTML Event attributeHTML < fieldset > tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML figcaption Tag
|