I have recently been working with "dry programmers" the guys who cannot draw a circle who are telling me html 4.01 strict and charset utf-8 is deprecated. Can someone tell me if my logic is wrong using 4.01 strict and utf-8? I requested a recommendation from the individual who suggested XHTML 1.0 and charset iso-8859-1. And if I were to use an HTML doctype to actually use HTML 5 . . . ?
When I tested him on it . . . he did not stick to his guns too much. I explained that I believed HTML 5 was not far enough along to begin using it. And in terms of XHTML. I just don't really know.
Can someone out there give it to me straight your thoughts?
Hi t-bone_two, Here's my
Here's my thinking.
HTML5 is a convergence of html and xhtml.
You can use the HTML5 doctype without using any of the new semantic, not well supported tags, and still have a valid site in that runs in compat mode.
Also the HTML5 doctype is simple to remember, actually it's probably the only one I can remember without looking it up.
It is supported by all browsers as far as I know, they all run in compat mode.
I had to look this up as I thought like you utf-8 was the way to go and it is.
So to wrap up using html5 doctype and utf-8 should be equivalent to 4.01 strict and utf-8.
Thank You Tony
Thank you for your time and detailed reply. Indeed very helpful.
No side effects to using HTML5 doctype
I've been using it for ages now (can't remember exactly how long) and browsers render the same using it as they would HTML4 or XHTML 1.
Thanks for your input Tyssen. I apprecaite it!!!
My view is that the doctype
My view is that the doctype is a switch. It turns standards mode on (or maybe it turns quirks mode off). Nothing more. Pick one you'd like and just stick to its rules and you're good. HTML5 does offer a few nice new goodies and, as stated above, it's easier to remember without looking it up.
Concerning the character set, UTF-8 is the way to go, in my opinion.