Basic <fieldset> and <legend>

Return to main list

This is a test case designed to determine how the <fieldset> and <legend> elements are announced in relation to an <input> by various screen readers.

Example

Contact details

Code

<fieldset>
  <legend>Contact details</legend>
  <div>
    <label for="name">Full name</label>
    <input type="text" id="name">
  </div>
</fieldset>

Assistive technologies

VoiceOver

NVDA

JAWS

Return to main list