HTML and CSS Reference
In-Depth Information
To ask for an age, a “number” will be requested, like so:
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title>Document</title>
6 </head>
7 <body>
8 <section>
9
<form action="">
10
Email <input type=”email” name=”email” required>
11
Age <input type=”number” name=”number” required>
12
</form>
13 </section>
14 </body>
14 </html>
While this would not be considered the neatest coding in the world, it will work just fine.
You can always come back to make things look pretty at a later point, once you have fin-
ished learning the basics.
Search WWH ::




Custom Search