Thursday, August 6, 2009

Switching to HTML 5

To switch to HTML 5, all you have to do is change your doctype to the following:
HTML 5 is fully backwards compatible with all browsers, so it has all of the advantages of HTML 4.01. Plus, it lets you write strict XML compatible markup without the parser throwing errors - such as being able to close tags with a trailing slash (e.g., y). HTML 5 is basically a convergence of HTML 4 and XHTML 1.1 with a whole load of new elements thrown in, which look to be very promising.

No comments:

Post a Comment