One word : semantics.

It all has to do with what the tags mean to the computer. For example, you
can write <div class="code"> to specify that the markup in that div is code
and should be displayed as such. However, to the browser, the means nothing
more than <div class="happyfuntime">. They're both just divs.

Now, if you use the new code element instead, that tells the browser it is
code.

I've been reluctant as well, but today I decided to start implementing some
of the elements and switched to the HTML doctype for a major project I'm
working on.

Hope that helps.
-Christian

On Jan 24, 2011 2:49 PM, <grant_malcolm_bai...@westnet.com.au> wrote:


Hello,

Could someone please clarify this for me. I realise that HTML5 has
introduced new semantic elements such as <header>, <aside> etc., but does
this really increase the expressive power of the markup? Can't the same
thing be achieved in HTML 4.x using classes (e.g. <p class="header">)?

I am reluctant to move to HTML5 due to the issue of backwards compatibility.

I would be grateful for any replies.

Regards,

Grant Bailey

*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to