I found that using NVDA with IE10 caused the title attribute and the aria-describedby element's text to be read out, but using NVDA with Chrome and Firefox didn’t exhibit this behaviour. Later on we’ll revisit this and show you one solution using CSS3.To make sure our user enters the right data in the email, website, and number of tickets fields, we can use some of the new input types added in HTML5: By specifying the appropriate type, our browser will validate the data for us and make sure we've got an email address in the email field, a URL in the website field, and a number in the number of tickets field.Then, when I saw Will Peavy ask about this topic over on the CF-Talk list, I figured, I should just sit down and write an example that I can send people to view.For those of you have been doing Cold Fusion for a while, this will be review, but for the beginners out there, this is a fairly comprehensive example on how to use Cold Fusion to upload a file, validate data, keep the file system clean, and then send that file to a given email address as a mail attachment.To recap—or in case you haven’t read Sandeep’s article—with the dawn of HTML5, a raft of new input types and attributes were added to tags that allow the browsers themselves to perform the client-side validation for us: no Java Script required.To start using the new input types and attributes, you don't really need to do anything other than start using the new input types and attributes.
If you need to support older versions of IE prior to IE10 you won't find any of those support form validation either.
This keeps our HTML semantic, with the labels helping to give meaning to the input controls.
It also means that if you click the label, the associated input tag receives the focus.
So if an older browser doesn't support them, the fact that they're in the HTML won't 'break' anything, they’ll just be rendered as an .
NB While client-side form validation is great for enhancing user experience—fast, instant feedback to the user without making a round trip to the server—you will still need to validate any data submitted on the server, too.
Strictly speaking, you should make sure you're using the HTML5 DOCTYPE, otherwise you'll run into HTML validation errors.