HTML5 and CSS3 101

John_Keck

Limp Gawd
Joined
May 3, 2010
Messages
379
Flash-free video and animations is just the tip of what HTML5 can do. Offline storage for web apps and more design tools are also on the menu.
HTML is the standard language used to build Web pages. It isn't going anywhere, but some new technologies--such as HTML5 and CSS3--are already changing how you interact with Web sites. Here's what these technologies are, what they can do, and why you should care.
 
Here's my condition before I switch: all common browsers should have full HTML5 and CSS3 functionality, or at least IE and FF.
 
I'm not bothering with it until it becomes the lowest common denominator. Or in other words when more than 60% of the browsers out there support it, than yea I'lllook into it. I wonder how well it degrades if its not supported on a particular browser.
 
Here's my condition before I switch: all common browsers should have full HTML5 and CSS3 functionality, or at least IE and FF.
You can at least serve some HTML5 elements to IE without it fucking up horrifically with some simple JavaScript. Video, audio and canvas won't work, obviously, but you can at least use the new elements without catastrophic results.

I use to develop in strict XHTML 1.1, serving application/xhtml+xml to trigger standards compliant rendering (IE6 should technically fail to do so catastrophically, but doesn't — IE can't even properly fail at failing). I'm now using HTML5 exclusively. If something doesn't work correctly in IE6, I disable the style sheet with a conditional comment and let users know they're running an antiquated browser.

CSS3, on the other hand, is mostly 'flavor'. I use it sparingly and don't specifically rely on it. Again, you can serve different styles for different browsers based on feature detection via JavaScript, but to me, it isn't worth the hassle. Trident visitors get boxes while Gecko/WebKit/Presto users get rounded corners and web fonts. Not that big a deal.
 
You can at least serve some HTML5 elements to IE without it fucking up horrifically with some simple JavaScript. Video, audio and canvas won't work, obviously, but you can at least use the new elements without catastrophic results.

I use to develop in strict XHTML 1.1, serving application/xhtml+xml to trigger standards compliant rendering (IE6 should technically fail to do so catastrophically, but doesn't — IE can't even properly fail at failing). I'm now using HTML5 exclusively. If something doesn't work correctly in IE6, I disable the style sheet with a conditional comment and let users know they're running an antiquated browser.

CSS3, on the other hand, is mostly 'flavor'. I use it sparingly and don't specifically rely on it. Again, you can serve different styles for different browsers based on feature detection via JavaScript, but to me, it isn't worth the hassle. Trident visitors get boxes while Gecko/WebKit/Presto users get rounded corners and web fonts. Not that big a deal.
+1
It's really not worth talking about full compliance with the whole standard. By the time that happens, we'll be on HTML 7 and CSS 5. Focus on the styles and elements that work on the browsers you care about (or that degrade gracefully). There are certainly enough gurus out there maintaining compatibility tables...
 
I'm glad to see that MS is taking this seriously. We all remember the painful crap and wasteful kludges needed to make things work in FF and IE... It will be nice to build sites using a new standard and not have to worry so much about what is broken and how, without waiting for six versions of IE to pass until it works across the board.
 
I'm glad to see that MS is taking this seriously. We all remember the painful crap and wasteful kludges needed to make things work in FF and IE... It will be nice to build sites using a new standard and not have to worry so much about what is broken and how, without waiting for six versions of IE to pass until it works across the board.

Yea its to the point where i just slap in special stylesheet excerpts for IE and call it a day.
 
Back
Top