W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] The div element

From: <html@nczonline.net>
Date: Thu, 28 Feb 2008 18:07:30 -0500
Message-ID: <19434754.1060511204240050284.JavaMail.servlet@perfora>
I'm still not clear to me how <section/> is anything more than a <div/>. HTML4 said: "The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents" (http://www.w3.org/TR/html401/struct/global.html#edef-DIV). Isn't that the very thing that <section/> is trying to do? Provide structure? I don't see that it offers anything over and above what <div/>s do now, except for confusing developers as to which is more appropriate to use.


>Geoff Pack wrote:
>> Why does the HTML5 spec say "The div element represents nothing at all" ?
>> [http://www.whatwg.org/specs/web-apps/current-work/#the-div]
>Personally I'd describe it more along the lines of:
>"The div element is a generic way of representing document structure, 
>but offers no further semantics.  Where appropriate, elements with more 
>specific meanings (such as section or aside) should be used instead. 
>Use of the div element may be appropriate for extended features not 
>covered by this specification, for example a new type of user interface 
Received on Thursday, 28 February 2008 15:07:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:39 UTC