W3C home > Mailing lists > Public > www-html@w3.org > September 2002

div versues section

From: Curtis C. Hovey <chovey@cox.net>
Date: 28 Sep 2002 11:17:48 -0400
To: www-html <www-html@w3.org>
Message-Id: <1033226269.1889.117.camel@luna.junk.org>

Semantically, div and section are opposites, but they appear to have the
same outcome when used. The div is taking the whole document and
dividing it into parts, while the section is taking parts and combining
them into a whole document.  The div element might divide the document
in name, but as it is a block-level container, it is defining a block
like a section. The section proposes to do what div is already doing in
my documents.  In the working draft div and section are identical except
for their first sentence.

From section:
The section element, in conjunction with the h element, offers a
mechanism for structuring documents into sections. 

From div:
The div element, in conjunction with the id and class attributes, offer
a generic mechanism for adding structure to documents.

But section also may use the id and class attributes as any HTML element

I don't think HTML needs a section, div can be used with h instead.  

__C U R T I S  C. H O V E Y__________________
No matter where you go...there you are
Received on Saturday, 28 September 2002 13:13:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:00 UTC