Learning about HTML5 Form Attributes (Part 2)
40+ Free Productivity Dashboards and Templates
Front-End Tooling Trends for 2017
How to Become a Better Developer by Coding Less
Make a Skype Bot with Electron & the Microsoft Bot Framework
How to Build Your Own Progressive Image Loader
Push Notifications in Your Ionic App with OneSignal
How to Secure Laravel Apps with 2FA via SMS
Low-Code Mobile Basics with OutSystems
Digital Fonts: A Condensed History
PHP-Style JSON Parsing in Java with Jsoniter
What Tutorials Don't Tell You: How to Approach Projects
7 Scheduling Tips for Stressed Out Freelancers
PHP Fractal - Make Your API's JSON Pretty, Always!
HTML5 Form Attributes (Part 1)
The following is an extract from our book, HTML5 & CSS3 for the Real World, 2nd Edition, written by Alexis Goldstein, Louis Lazaris, and Estelle Weyl. Copies are sold in stores worldwide, or you can buy it in ebook form here.
required attribute tells the browser to only submit the form if the field in question is filled out. Obviously, this means that the field can’t be left empty, but it also means that, depending on other attributes or the field’s type, only certain types of values will be accepted. Later in the chapter, we’ll be covering different ways of letting browsers know what kind of data is expected in a form.