Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document.</title> <style> div { margin-bottom: 10px; } label { display: inline-block; width: 70px; } </style> <body> <h1>Example</h1> <form action="/form/submit" method="get"> <div> <label for="name">Name:</label> <input type="text" id="name" name="name" autofocus> </div> <div> <label for="surname">Surname:</label> <input type="text" id="surname" name="surname"> </div> <div> <label for="year">Year:</label> <input type="number" id="year" name="year" value="2020" disabled> </div> <input type="submit"> </form> </body> </html>