5 replies [Last post]
t-bone_two
t-bone_two's picture
Offline
Enthusiast
Los Angeles
Last seen: 9 weeks 1 day ago
Los Angeles
Timezone: GMT-7
Joined: 2009-09-26
Posts: 209
Points: 268

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?

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 18 hours 29 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5125
Points: 2722

Hi t-bone_two, Here's my

Hi t-bone_two,
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.
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset

So to wrap up using html5 doctype and utf-8 should be equivalent to 4.01 strict and utf-8.

t-bone_two
t-bone_two's picture
Offline
Enthusiast
Los Angeles
Last seen: 9 weeks 1 day ago
Los Angeles
Timezone: GMT-7
Joined: 2009-09-26
Posts: 209
Points: 268

Thank You Tony

Tony:

Thank you for your time and detailed reply. Indeed very helpful.

Trav

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

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.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

t-bone_two
t-bone_two's picture
Offline
Enthusiast
Los Angeles
Last seen: 9 weeks 1 day ago
Los Angeles
Timezone: GMT-7
Joined: 2009-09-26
Posts: 209
Points: 268

Thank You

Thanks for your input Tyssen. I apprecaite it!!!

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 4 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2259

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.