Learn How To Write HTML 5

Discovered through twitter, there is an interesting blog post from Kroc Camen on how to learn HTML 5. The author is giving good essential guidelines on semantics and elements. The conclusion of his blog post is spot on and shows one of the painful points of HTML 5 specification:

Once you have made a decent HTML4 site, then you will look at the HTML5 specification, and it will make sense—you will know what to do with it.

A document is being written for filling this hole: The Web Developer’s Guide to HTML 5

11 thoughts on “Learn How To Write HTML 5

  1. The Web Developer’s Guide to HTML 5 claims: “Both the HTML and XHTML syntax appear similar and it is possible to mark up documents using a common subset of of the syntax that is the same in both, while avoiding the syntactic sugar that is unique to each.” But consider these cases:

    <p>Text<br>Next line</p>

    That’s legal HTML, but not legal XHTML. For XHTML we need:

    <p>Text<br/>Next line</p>

    That’s legal XHTML, but not legal HTML (at least for HTML 4). The slash for auto-closing a tag isn’t allowed in HTML, even though many browsers accept it. Is it legal HTML 5? This is a fairly common situation and imposes a necessary divergence between HTML and XHTML. Does HTML 5 ameliorate this issue?

  2. For Gary, I’ll note that HTML 4 and earlier are defined as SGML vocabularies, with minimization defined, which means that <br /> is arguably legal, at least in a pedantic sense. In practice, none of the main HTML4-generation browsers used an SGML parser internally, and the HTML 4 spec doesn’t really talk about the (arcane and bizzare) SGML minimization rules. So, you can only use the slash form of the tag in HTML when the element is always without content: it would be OK for BR but not for SCRIPT, for example.

  3. WTF standards changing in a ever increasing manner. Can’t we just hold off and do it right the first time?

  4. I am a new; if i want to learn HTML where to start.
    I am conversant with computer terminology and hand have computer with net connection and ample time at my disposal.
    Can anyone be kind enough to guide me?

  5. @Dave – HTML is the next iteration of HTML, sites do NOT have to use HTML 5 it simply adds additional functionality.

    @Craig – The previous standards can still be used and HTML 5 will not be finished or fully supported for a while yet, the reason the specification is changing is to add greater functionality (forms with different field types, easier layout of pages etc).

    @Jawad Farooq – No, IE doesn’t support it much at all without hacks, the rest support bits to varying extent with Opera being the leader last I checked.

    @sennamohan – go to w3schools.com, they have plenty of tutorials.

  6. Im a self taught jack of all trades, master of few. The one thing I stayed away from was coding. When it comes to web design Im using swish, coffeeshop, ulead photoimpact and many others. As you can see these are all WYSIWYG. Apple is allowing html built apps to be placed into a lil bundle and placed somewhere in the native coding of the app. Steve Jobs is worshiping HTML5. Will HTML5 come in any WYSIWYG style software?

Comments are closed.