HTML tag

HTML tag is used to insert a title or caption to its parent element such as

. The element must be the first child of

By using tag with

elements, it is easy to understand the purpose of grouped form elements.


Following are some specifications about the HTML tag

Display block
Start tag/End tag Both Start and End tag
Usage textual


Test it Now


HTML legend tag


Tag-specific attributes:

Attribute Value Description
  • top
  • bottom
  • left
  • right
It specifies the alignment of the caption.
(Not Supported in HTML5)

Global attribute:

The tag supports the global attributes in HTML

Event attribute:

The tag supports the event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML lists

Hot Tutorials

Contact US

HTML legend Tag