Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <fieldset> <legend>Name Details</legend> <p>First Name: <input type="text"> Surname: <input type="text"></p> <p>Preferred Name: <input type="text"></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> <hr> <p>The <code>fieldset</code> element represents a group of form elements in an HTML document. It is typically used with the <a href="/html/tags/html_legend_tag.cfm"><code>legend</code></a> element which allows you to provide a caption.</p> <p>More info: <a href="/html/tags/html_fieldset_tag.cfm"><code>fieldset</code></a>.</p>
Preview