Tag Archives: HTML legend tag

HTML legend tag

 

<input type="text" style="width:120px;" /></p>
<p>Preferred Name: <input type="text" style="width:120px;"></p>
</fieldset>
<fieldset>
<legend>Gender</legend>
<input type="radio" name="gender" value="male" /> Male
<input type="radio" name="gender" value="female"> Female
<input type="radio" name="gender" value="other" /> Other
</fieldset>

Eg. :

Preferred Name:

Gender

Male
Female
Other