So, after the announcement that the XHTML 2 working group will not be renewed, and more resources will be put into HTML 5 development, I have tried to do some research into HTML 5 in consideration of jumping on the bandwagon. I was not very familiar with the HTML 5 spec, as most of my work is done in XHTML 1, usually with the Transitional doctype. The research I have done so far, though, reveals several advantages of the HTML 5 specification:
- the “target” attribute is no longer deprecated for links, therefore target=”_blank” is completely valid on an anchor (useful for web developers without time to use JavaScript to force links to open in external windows/tabs)
- there is only one doctype, and it is extremely simple (at least for the HTML 5 spec used as HTML, rather than as XML): <!doctype html>
- this doctype is recognized by IE6 and will not trigger quirks mode (found this out through some personal testing)
- HTML 5 brings Web Forms 2, which have some awesome capabilities
<!doctype html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>HTML 5!</title>
</head>
<body>
<fieldset>
<legend>Testing Web 2 forms in Opera</legend>
<form method="post" action="">
<label>Email: <input type="email" required="required" name="email"/></label>
<input type="submit" />
</form>
</fieldset>
</body>
</html>
I love that simple doctype! I am still not completely sure if I will be a convert for my next project, but I am definitely going to continue to research the HTML 5 specification as a more reasonable (and possibly “future-proof”) solution for coding my projects in the future.