Accessibility 101
Forms (continued)

Using fieldsets

Example fieldset

Primary Cardholder

Secondary Cardholder

Code for Example fieldset

<fieldset>
<legend>Primary Cardholder</legend>
<label for="primaryFirstName">First Name</label>
<input id="primaryFirstName" type="text" name="primaryFirstName">
</fieldset>

<fieldset>
<legend>Secondary Cardholder<legend>
<label for="secondaryFirstName">First Name</label>
<input id="secondaryFirstName" type="text" name="secondaryFirstName">
</fieldset>