14 replies [Last post]
mpoveda
mpoveda's picture
Offline
Enthusiast
Costa Rica
Last seen: 8 years 13 weeks ago
Costa Rica
Timezone: GMT-6
Joined: 2007-06-22
Posts: 104
Points: 29

Good Afternoon Guys.
I've been following this blog for some time now and throughout this time I have adopted a lot of the good practices must of you always suggest, like Doctype, Validation, etc... I have been working with Strict XHTML for some years now.
I will really appreciate your advice in terms of moving to HTML5. I will always use all the good things I've learned in this site in terms XHTML coding, but I just wonder, is it the time to move to HTML5 now?

Thanks in advance.

..."Many of my friends have moved away. They search in other places for happiness. Little do they know that there is nothing to be found out in the world to give you happiness for happiness does not originate from "out there"...

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 9 hours 28 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Sounds like such a nice

Sounds like such a nice simple question Puzzled
The answer is not so black and white.
Firstly HTML5 is still only a working draft, so things can and will change. As web developers we are used to handling change so that shouldn't be too much of an issue depending on how you make use of HTML5.

Lots of the new html5 features require hacks to work in old browsers. Again we are used to that.

Really I think it depends on the site and the features you are going to use.
If you are working full time on your company website or your own, then go for it. You can always apply patches/fixes as required.
If you are building a client site then tread carefully, as next year they might be cursing you for making such a bad site that doesn't work in such and such a browser. They will pay some frontpage developer to redo the site. Stare

I have started using the html5 doctype just because it is shorter and easier to remember. With that you can use html4 or xhtml markup sprinkled lightly with html5.

Resources:
http://html5boilerplate.com/
http://diveintohtml5.org/
http://html5doctor.com/

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 43 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Tony wrote: I have started

Tony wrote:

I have started using the html5 doctype just because it is shorter and easier to remember. With that you can use html4 or xhtml markup sprinkled lightly with html5.

Same here.

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

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 48 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

Ive started using html5 with

Ive started using html5 with css3 on all my personal stuff. I dont use hacks for anything, so my site isnt friendly to some browsers. To help aid this, Ive totally blocked my site from being viewed with any version of IE. This approach isnt idea, but I just dont give a sh*t. I wouldnt use too much html5 or css3 if it were a customer's site you were building.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 43 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

CupidsToejam wrote: I wouldnt

CupidsToejam wrote:

I wouldnt use too much html5 or css3 if it were a customer's site you were building.

Get yourself http://css3pie.com/ and you remove a lot of the restrictions that IE normally poses on your use of CSS3. I've been using it quite a bit on the last 3 or 4 sites I've been working on.

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

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 3 years 4 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

I picked up the HTML5 book

I picked up the HTML5 book from ALA - http://books.alistapart.com/
It's insightful, haven't finished it yet, so no real review, but the first 30ish pages I've gotten through has some fun information on it's development as well as examples of usage.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 4 years 48 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

Deuce wrote: I picked up the

Deuce wrote:

I picked up the HTML5 book from ALA

I pre-ordered that one. Its a real easy to read and understand!

Thx Tyssen, it looks enticing!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 31 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Yeah been dying to be able to

Yeah been dying to be able to do:

<section>
  <h3>nice new section</h3>
    <p>I have a brand new element to keep me warm and cosy</p>
</section>

Would help if the whatwg could put together readable drafts on the specs Smile

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 15 hours 22 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

Book price for a booklet

CupidsToejam wrote:
Deuce wrote:

I picked up the HTML5 book from ALA

I pre-ordered that one. Its a real easy to read and understand!

Thx Tyssen, it looks enticing!

I also pre-ordered. I found it to be very informative, and well worth reading, but wa-ay over priced.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Stomme poes
Stomme poes's picture
Offline
Elder
Netherlands
Last seen: 8 years 41 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2008-02-04
Posts: 1854
Points: 378

.

Maybe the price will be more reasonable at about the time IE9 comes out of beta and hits the shelves.

I'm no expert, but I fake one on teh Internets

MASep10
MASep10's picture
Offline
newbie
Last seen: 9 years 41 weeks ago
Timezone: GMT-4
Joined: 2010-09-17
Posts: 1
Points: 1

Hey Gary.turner, Tks for the

Hey Gary.turner, Tks for the info, I am looking at it also and am hoping it will be of help. Since I am a beginner I am hoping it is easy to read.

FernE97
FernE97's picture
Offline
Enthusiast
Dublin, CA
Last seen: 1 year 23 weeks ago
Dublin, CA
Timezone: GMT-8
Joined: 2007-01-10
Posts: 176
Points: 44

Yes it is.. just add

It is time.. just add <!doctype html>

It's backwards compatible so you could technically go back and switch your xhtml and html4.01 doctypes and they will still work the same. I think using actual html5 elements is fine to work with now as long as you have some fallback for browsers that don't support it. There are many javascript workarounds to create these elements like modernizr but then of course you have to rely on the user having javascript enabled, but hey if you are using IE6 with javascript disabled you might as well switch over to prodigy (or just shoot yourself)..

Check out html5 boilerplate as well

Stomme poes
Stomme poes's picture
Offline
Elder
Netherlands
Last seen: 8 years 41 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2008-02-04
Posts: 1854
Points: 378

ya

Quote:

but hey if you are using the most popular browser on the planet with javascript disabled you might as well switch over to prodigy (or just shoot yourself)...

I'm not fan of IE, but I have to accept it is the most popular browser on the planet. IE6 accepts the HTML5 doctype just fine, but none of the IE's under 9 understand the <footer> tag or any other tags. So you're using scripting to make markup work.

Which is fine for a site created to showcase what HTML5 can and can't do.
Don't use it for banks, e-commerce, government sites, non-profits, etc. Certainly not for sites built in a country that legally requires sites be accessible (and if they are based on WCAG, then scripting is addressed).

Pointing out that some set of users are in a minority seems to be used a lot in comments on HTML5 sites as some way to say it's ok to tell them off. I'd say it depends on the site, the target audience and the applicable laws.

I'm no expert, but I fake one on teh Internets

Web77org
Offline
newbie
Last seen: 9 years 45 weeks ago
Timezone: GMT-4
Joined: 2010-09-26
Posts: 8
Points: 8

mpoveda wrote: Good Afternoon

mpoveda wrote:

Good Afternoon Guys.
I've been following this blog for some time now and throughout this time I have adopted a lot of the good practices must of you always suggest, like Doctype, Validation, etc... I have been working with Strict XHTML for some years now.
I will really appreciate your advice in terms of moving to HTML5. I will always use all the good things I've learned in this site in terms XHTML coding, but I just wonder, is it the time to move to HTML5 now?

Thanks in advance.

Myself, and being new to all this HTML stuff, decided that its best for me anyway to go ahead and get used to writing HTML and CSS that is certainly on its way in rather than learning bad habits or outdated code.

It certainly helps me to not have to remake a website later if the code is validating Strict now.

In as much as I can I try to get most of my pages to validate XHTML Strict.
Some dont because Ive got some script or something that doesnt jibe, but I make sure to leave those so they can be easily removed/replaced with something else later if I have to.
Smile

Web77org
Offline
newbie
Last seen: 9 years 45 weeks ago
Timezone: GMT-4
Joined: 2010-09-26
Posts: 8
Points: 8

CupidsToejam wrote: Ive

CupidsToejam wrote:

Ive started using html5 with css3 on all my personal stuff. I dont use hacks for anything, so my site isnt friendly to some browsers. To help aid this, Ive totally blocked my site from being viewed with any version of IE. This approach isnt idea, but I just dont give a sh*t. I wouldnt use too much html5 or css3 if it were a customer's site you were building.

Ive just been making it as compliant as I can with the incoming HTML and CSS and letting the chips fall where they may.
If IE doesnt want to play ball, Im not getting bent out of shape or trying to learn hacks for IE 4 versions old.
If people want to be able to SEE and READ the site as Ive created it, they need to get rid of that 486 dinosaur and get into the 90s....