There’s been a lot of discussion around HTML 5, what it should be, and what it shouldn’t be. Crockford’s post outlines his perspective on things in typical Crockford-fashion. I also have my own ideas about what I’d like to see in HTML 5. I shared this internally at Yahoo!, but thought I’d put it out there for others to see as well.

My disclaimer to this list is that I do not have the solutions to the problems. Perhaps with time, I could come up with some proposals and such. However, my point is not to push forth my own ideas as solutions, but rather to point out the problems I run into frequently. In my mind, it’s solving these problems that should lead to HTML 5.

  1. Better Accessibility – there are precious few accessibility features in HTML currently. We do a lot of hacking to provide better experiences to screen readers and the like, often ending up with hacks. There should be an easy way to provide accessibility features without sacrificing the visual format of the page or necessitating hacks such as text-align: -10000px to hide things visually but allow screen readers to read them. This goes double for dynamic portions of the page.
  2. Better form controls – as desktop apps have moved towards more interest input controls, we’ve been stuck with textboxes, checkboxes, radio buttons, standard buttons, and a single file upload for far too long. We need more control options, including multiple file upload and ways to submit structured data. All form controls should support some kind of built-in validation so we don’t need to keep re-writing validation routines. All of the controls should be completely stylable with CSS in a consistent way.
  3. More UI elements – things like menus and tabsets have become so commonplace that it makes sense to make them part of HTML. This would save us from downloading JavaScript just to get these interactions.
  4. Different behavior attachment – I’ve blogged about this before, but we really need a different way to attach behavior to elements. The old <script/> element just isn’t cutting it anymore.
  5. Style and script containment – we need a way to constrain styles and scripts to a particular section of the page. This is the problem that Crockford’s proposed Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.