HTML 101
Forms (continued)

Using labels

Example label

Code for Example label

<label for="firstName">First Name</label>
<input id="firstName" type="text" name="firstName">

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>