Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> legend { display: block; padding-left: 2px; padding-right: 2px; border: none; } </style> </head> <body> <p>A legend element is displayed like this:</p> <fieldset> <legend>Personalia:</legend> Name: <input type="text"><br> Email: <input type="text"><br> Date of birth: <input type="text"> </fieldset> <p>Change the default CSS settings to see the effect.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_legend_default_css by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:48:37 GMT --> </html>
Result:
Try it Yourself - © w3schools.com