HTML Page Structure

HTML Elements
HTML Attributes

HTML Fieldset Tag

HTML Fieldset Tag is useful when you require to group several controls, related elements and labels in a web form. It draws a box structure within which such related elements are placed.


<LEGEND>title of fieldset will come here....</LEGEND>

HTML Fieldset Example

<!DOCTYPE html>
<title>My HTML Fieldset Tag Example</title>
<LEGEND>Welcome Button</LEGEND>
<button type="button" onclick="alert('Welcome to Techstrikers!')">Hit me!</button>

This will produce following result

Welcome Button