COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | FIELDSET
Fieldset tag creates groups related form elements in a form.

SYNTAX

OPENING TAG CLOSING TAG
<fieldset> </fieldset>

Fieldset Tag in HTML

<fieldset> .. </fieldset>

Example : fieldset.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Fieldset</title>
<body>
<form>

<fieldset>
<legend>Computer lectures | Fieldset </legend>
<label for="fname">First name: </label>
<input type="text" size="65%" maxlength="40" name="computerlectures_fname">
<label for="lname">Last name: </label>
<input type="text"size="65%" maxlength="40" name="computerlectures_lname">
<label for="email">Email: </label>
<input type="email"size="65%" maxlength="40" name="computerlectures_email">
<input type="submit" value="Submit">
</fieldset>

</form>
</body>
</html>

The output on the web broswer

fieldset