Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 7 Media - Third Edition

You're reading from  Drupal 7 Media - Third Edition

Product type Book
Published in Jul 2013
Publisher Packt
ISBN-13 9781849516082
Pages 260 pages
Edition 3rd Edition
Languages
Concepts
Author (1):
Liran Tal Liran Tal
Author Profile Icon Liran Tal
Liran Tal
Toc

HTML5 form elements


You probably remember the times when we turned to JavaScript libraries to implement a horizontal or vertical range bars. How about implementing a widget for the user to input the time, colors, or even email addresses? We've always turned to old faithful JavaScript, but not any more.

With HTML5, we gain semantic elements, such as the following input element examples:

  • A form input element for specifying a range:

    <input type="range" min="0" max="100" value="50" />
  • A form input element for specifying the time:

    <input type="time" />
  • A form input element for specifying a color:

    <input type="color" />
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime