Re: [webdesign-396] HTML5 correct doctype

From: Parag J.
Sent on: Wednesday, April 21, 2010 12:00 AM
Aoirthoir,

From my understanding the doctype is supposed to trigger standards mode - that is it's only job. So if you use standard text/html in your documents and only write standards compliant HTML 4 code, the HTML5 doctype <!DOCTYPE html>? should make your browser render in standards mode - even on older browsers since you are not actually using any new HTML5 elements, but still want to render in standards mode.

The best explanation I found was here: http://notjustahatrack.com/posts/use-the-html5-doctype/
Reading http://hsivonen.iki.fi/doctype/ under the section "Choosing a Doctype" is also worthwhile.

I got most tips from http://html5doctor.com/how-to-use-html5-in-your-client-work-right-now/

John Resig says:

"What's nice about this new DOCTYPE, especially, is that all current browsers (IE, FF, Opera, Safari) will look at it and switch the content into standards mode - even though they don't implement HTML5. This means that you could start writing your web pages using HTML5 today and have them last for a very, very, long time."

http://ejohn.org/blog/html5-doctype/

This has another explanation http://diveintohtml5.org/semantics.html
(This book is something you can assign your students to read as a whole - its a fun read and goes fast.)

Having said that, I go by the rule of test first and ask questions later :).
Figure out your most common browser with usage statistics and test vigorously there.


Thank You,
Parag Jagdale
Un-identified LLC
www.un-identified.com


On Mon, Apr 19, 2010 at 11:27 PM, Aoirthoir An Broc <[address removed]> wrote:
Stuart,

True that. But that is for the browsers that are already supporting HTML5 or at least bits of it. Those that are not yet, need a doctype pointed to, *I believe*. But if the one you have below will work in all cases, then I am for it. I am just concerned it would not work in all browsers (that is it would not validate) or that it will not work in older browsers. I don't know enough yet to be certain.


--- On Mon, 4/19/10, Stuart Smith <[address removed]> wrote:

From: Stuart Smith <[address removed]>
Subject: [webdesign-396] HTML5 correct doctype

To: [address removed]
Date: Monday, April 19, 2010, 9:38 PM


Aoirthoir:

I confirmed with?Parag Jagdale and with the W3.org website that?the correct doctype and info about the header for HTML5 is:?

<!DOCTYPE html>
<html?lang="en">

I got this from?Parag's?demo (http://www.un-identified.com/html5/index.html), plus he emailed me, and also from:?http://www.w3.org/TR/html5/semantics.html#the-root-element

Look at Parag's test blog page (http://www.un-identified.com/html5/blog.html) to test with other browsers.?

Stuart

Web Development SIG Co-Leader?-?www.WebSigCleveland.org?
Follow me on:?twitter.com/sos_jr
===========================?
Stuart O. Smith, Jr., MNO, MCP+I?
Certified Internet Webmaster -?Master?Designer

home email:?[address removed]
home phone:[masked]

Please consider the environment before printing this e-mail.



On Apr 19, 2010, at 12:04 AM, Aoirthoir An Broc wrote:

Stuart thanks. Now we just have to find the HTML 5 doctype that I had some time ago. Only important so that our code can validate in the browsers until HTML5 becomes supported by the browsers.

Kind Regards,
Aoirthoir The Coca Cola Drinker.

--- On Sun, 4/18/10, Stuart Smith <[address removed]> wrote:

From: Stuart Smith <[address removed]>
Subject: [webdesign-396] HTML5 JavaScript
To: [address removed]
Date: Sunday, April 18, 2010, 8:44 PM

Aoirtoir and all:

I confirmed with the presenter (Parag Jagdale)?of the Web Development SIG (www.WebSigCleveland.org) 4/17 meeting on HTML5/CSS3 that the JavaScript you found today is the same one he recommended yesterday. ?Here is the link for everyone:?http://remysharp.com/2009/01/07/html5-enabling-script/

Parag has now posted his?HTML5/CSS3?presentation online at:?http://www.un-identified.com/html5/index.html ?It contains some great HTML5 examples, plus some very useful links. ?Remember that HTML 5 is not a W3C recommendation yet, and not all browsers will support its functions. ?

For everyone, here is the link to the?W3Schools?HTML 5?Tag Reference: http://www.w3schools.com/html5/html5_reference.asp

If you go to my Twitter page you will see additional links from today's workshop plus my weekly announcement on tech meetings I track in Cleveland:?http://twitter.com/sos_jr

Stuart

Web Development SIG Co-Leader?-?www.WebSigCleveland.org?
Follow me on:?twitter.com/sos_jr
===========================?
Stuart O. Smith, Jr., MNO, MCP+I?
Certified Internet Webmaster -?Master?Designer

Please consider the environment before printing this e-mail.



On Apr 18, 2010, at 7:59 PM, Aoirthoir An Broc wrote:

Today's meeting was productive and we hashed out a lot of the details. We will be working in teams next week (or the following if I am not in town next week) to create the code for our templates. To find out where we stand with this project and participate in the discussion please go to:

http://www.meetup.com/Cleveland-Web-Design-and-Development-Meetup/messages/boards/thread/8965534

Kind Regards,
Aoirthoir




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aoirthoir An Broc ([address removed]) from Cleveland Web Design and Development Meetup.
To learn more about Aoirthoir An Broc, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Stuart Smith ([address removed]) from Cleveland Web Design and Development Meetup.
To learn more about Stuart Smith, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aoirthoir An Broc ([address removed]) from Cleveland Web Design and Development Meetup.
To learn more about Aoirthoir An Broc, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Stuart Smith ([address removed]) from Cleveland Web Design and Development Meetup.
To learn more about Stuart Smith, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aoirthoir An Broc ([address removed]) from Cleveland Web Design and Development Meetup.
To learn more about Aoirthoir An Broc, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy