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 > Adding a URL using the URL input type

Adding a URL using the URL input type

Another of the many new input types that HTML5 supports is URL. How many times have you built a form using <input type="text" /> intending to collect a website 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 as well. 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