Line break inside a <legend> test

Index page

This test is to determine if line breaks are allowed inside the <legend> element. This is based on the W3C content model, which defines content that must be included as children and descendants of the element.


Example

Something
Another thing
<form action="#">
  <fieldset>
    <legend>Something<br> Another thing</legend>
  </fieldset>
</form>

Dummy link after


Results

The <legend> element can contain phrasing content, optionally intermixed with heading content.

Index page