DEV Community

Cover image for HTML tags | legend
Carlos Espada
Carlos Espada

Posted on

HTML tags | legend

Used to insert a title in a <fieldset>. It must be inserted just after <fieldset>, as the first child.

It is usually rendered centered in the middle of the <fieldset> border, it can be repositioned with CSS although depending on the design it can sometimes be a bit difficult to achieve the desired effect.

  • Type: block
  • Self-closing: No
  • Semantic value: No

Definition | Example | Support

Discussion (0)