HTML 101
Forms (continued)
Using label
s
Example label
Code for Example label
<label for="firstName">First Name</label>
<input id="firstName" type="text" name="firstName">
Using fieldset
s
Example fieldset
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>