DotDragnet
May 24, 2012, 04:50:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: using html5 now  (Read 483 times)
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« on: June 01, 2011, 12:20:01 PM »

Discuss....


Is HTML5 ready to be used now? if you do use it how do you get around the fact that ie can't show it and you have to use javascript to make it work?
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Dom
Hero Member
*****
Posts: 1681


Taster of pasities. Clanger of both pots AND pans.


DominicNeagle
View Profile Awards
« Reply #1 on: June 01, 2011, 12:30:48 PM »

What version of IE can't show it? I'm pretty sure IE9 is capable, but to be honest you can make your webpages HTML5 compatible right now without changing much of your current code (depending on how complicated it is).

I've simply changed the Doctype declaration of some of my XHTML 1.0 Strict webpages to convert them to HTML5, and they validate as HTML5 nicely.

So you can actually use HTML5 now, and still have sites work properly (or at least, work as they do now) in your browsers, as long as you don't have any of the fancy HTML5-only stuff in the code. That way, when the time comes to actually use HTML5, you can add HTML5 features to your site slowly but surely, with minimal changes to your code, and with as little chance as possible that it might break in your various browsers.
Logged

SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« Reply #2 on: June 01, 2011, 12:58:35 PM »

can you give me an example dom?
Do you mean you mix xhtml 4 with html5 ie with footer and nav containers?
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Dom
Hero Member
*****
Posts: 1681


Taster of pasities. Clanger of both pots AND pans.


DominicNeagle
View Profile Awards
« Reply #3 on: June 01, 2011, 01:26:03 PM »

No I didn't go as far as using any HTML5 elements such as <header> or <footer>, although my pages contained <div> elements with similar ID's.

What I mean is that I had a bunch of XHTML 1.0 Strict pages (that all validated nicely) and I simply changed the DOCTYPE declaration at the top of the pages from this:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

...to this:

Code:
<!DOCTYPE HTML>

I'm of the belief that it's best to make your HTML code as simple and short as possible, so when it came to changing the DOCTYPE declaration as shown above, I didn't have any XHTML in my existing pages that wouldn't validate if it were used in an HTML5 page.

So simply by changing the DOCTYPE, I've effectively converted my pages to HTML5. They don't use any of the fancy HTML5 features (yet) but I've laid the groundwork in preparation. Plus there's the added bonus that because the HTML hasn't changed at all (because I had nothing in there that doesn't validate with HTML5) I know that my pages still look the same as they previously did in all browsers.

Whether or not other people can do the same thing depends on how complicated their HTML code is to begin with, and how much of it won't validate with HTML5. As I say, my code is as simple as I could make it, and so I was lucky in that when I changed the DOCTYPE, it still validated, even as HTML5.
Logged

Jem
Sr. Member
****
Posts: 469



jemjabella jemjabella
View Profile WWW Awards
« Reply #4 on: June 01, 2011, 01:59:06 PM »

^ I've started doing the same. Using the doctype and then gradually introducing some of the interesting features like form input types (which degrade nicely if browsers don't support them)
Logged

oi.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!