HTML and CSS Reference
In-Depth Information
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title>Document</title>
6 </head>
7 <body>
8 <section>
<form action="">
12 </section>
13 </body>
14 </html>
Next, an area where an email address can be input is required. This simply uses the “<in-
put>” tag. It doesn't need to be closed with a second “<input>” tag just yet. In addition, this
input will have “email” in front of it, since that's what it's for.
The “email” preface used in this step makes it so an an email address has to be entered. So
that you can get an idea of how helpful HTML5 is, consider what this step would have re-
quired in the past. Earlier forms of HTML would have accepted whatever someone entered,
and you would have needed some extra code, just to make sure that you were receiving
real email addresses. Isn't it much simpler to just use the “email” preface that comes with
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
Search WWH ::

Custom Search