Example
Example
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Fieldset and Legend</title>
5
</head>
6
<body>
7
8
<h2>User Profile Setup</h2>
9
<form>
10
<fieldset>
11
<legend>Personal Details</legend>
12
<p><label>First Name: <input type="text" name="fname"></label></p>
13
<p><label>Last Name: <input type="text" name="lname"></label></p>
14
</fieldset>
15
16
<fieldset>
17
<legend>Account Security</legend>
18
<p><label>Password: <input type="password" name="pwd"></label></p>
19
</fieldset>
20
</form>
21
22
</body>
23
</html>
