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.
Syntax
<FIELDSET> <LEGEND>title of fieldset will come here....</LEGEND> </FIELDSET>
<!DOCTYPE html> <html> <head> <title>My HTML Fieldset Tag Example</title> </head> <FIELDSET> <LEGEND>Welcome Button</LEGEND> <button type="button" onclick="alert('Welcome to Techstrikers!')">Hit me!</button> </FIELDSET> </html>
This will produce following result