Comments on: Your Questions Answered #11 https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/ helping you implement HTML5 today Wed, 29 Jun 2016 23:08:47 +0000 hourly 1 By: Oli Studholme https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-10024 Tue, 03 Aug 2010 12:54:08 +0000 http://html5doctor.com/?p=2328#comment-10024 @Brian — if only you’d made it to the third sentence of that answer! :p

Like smoking, you may feel cool droppin’ tags, but our advice is not to. This is both for your own health, and for the health of those who may read/copy your code without the benefit of your insight ;)

]]>
By: Brian Campbell https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-10016 Tue, 03 Aug 2010 06:32:03 +0000 http://html5doctor.com/?p=2328#comment-10016 You say “it is now explicitly permitted to omit all kinds of tags” as if this is a new feature in HTML5; but in fact, it was perfectly valid in HTML 4 to omit these tags as well. For instance, from HTML 4: “The HEAD Element … Start tag: optional, End tag: optional”. You can check this out by running a document containing just the HTML 4 doctype, an empty <title> element (which is still required; it’s the only mandatory tag in an HTML document), and an opening <p> tag (in HTML 4, it was required that the body not be empty, and this is the easiest way to ensure that) through an HTML 4 validator, and it will come back valid.

For a few more tips on going all the way when minifying HTML, see Anne van Kesteren’s Optimizing Optimizing HTML.

]]>
By: Stan https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9994 Sat, 31 Jul 2010 19:38:01 +0000 http://html5doctor.com/?p=2328#comment-9994 Re: Getting info from a canvas to the server

Please look at this:
http://html5stars.com/?p=99

It explains how to save your canvas as a picture on the server

]]>
By: Oli Studholme https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9989 Sat, 31 Jul 2010 04:40:57 +0000 http://html5doctor.com/?p=2328#comment-9989 @Alohci — thanks for that! I’ve updated the text…

]]>
By: Alohci https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9984 Sat, 31 Jul 2010 00:55:21 +0000 http://html5doctor.com/?p=2328#comment-9984 @Oli – It’s not the HTML, HEAD and BODY *elements* that are allowed to be omitted, it’s the *tags*. The elements are inferred and created by the parser. And those inferences are not part of the error handling, at least in HTML5 (i.e. they don’t cause a parse error). I don’t know if browsers internally treat them as an error, but theoretically at least they’re not part of the error handling.

]]>
By: BigAB https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9982 Fri, 30 Jul 2010 19:13:53 +0000 http://html5doctor.com/?p=2328#comment-9982 @Mathias
It does break in IE. I made a clunky fix, but would appreciate improvement suggestions.

]]>
By: Mathias Bynens https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9978 Fri, 30 Jul 2010 14:39:34 +0000 http://html5doctor.com/?p=2328#comment-9978 Remy, I see you linked to your placeholder fallback gist. Is it me or does it still break in IE?

]]>
By: John https://stevefaulkner.github.io/html5doctored/your-questions-answered-11/#comment-9977 Fri, 30 Jul 2010 14:35:07 +0000 http://html5doctor.com/?p=2328#comment-9977 Just started using HTML5 form elements, and am really loving placeholder. Can’t wait until it’s more widely supported.

]]>