Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> form { width: 55%; } fieldset { padding: 25px; } label { display: inline-block; width: 95px; text-align: right; } legend { display: block; padding: 15px; margin-bottom: 10px; background-color: #cccccc; color: #777777; } </style> </head> <body> <form> <fieldset> <legend>Personal data:</legend> <label>Name:</label> <input type="text"> <br/> <br/> <label>E-mail:</label> <input type="email"> <br/> <br/> <label>Date of birth:</label> <input type="number"> <br/> <br/> <label>Place of birth:</label> <input type="text"> </fieldset> </form> </body> </html>