Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. Learning to Love Forms > Using the e-mail input type

Using the e-mail input type

One of the many new input types that HTML5 supports is email. How many times have you built a form using <input type="text" /> intending to collect an e-mail address? Now we can use something much more semantically correct! Later, we'll see how this supports form validation as well.

How to do it...

The previous FoundationSix example could be easily converted to this new input type. Instead of:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial