W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: HTML heading hierarchy for XHTML

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Tue, 1 Feb 2000 11:27:21 -0500
To: <html-tidy@w3c.org>
Message-ID: <NBBBICMNIPCICMKJECCBMEGADFAA.jelks@jelks.nu>
P. T. Rourke wrote:

> <div name="sec1"><h1>First Order Heading</h1>
> <p></p>
> <div name="sec1.1"><h2>Second Order Heading</h2>
> <p></p>
> </div>
> </div>
> 
> (I believe that a div element can contain another div element.)

Yes.  But there is no "name" attribute for div.  You probably meant "id":
  
  <div id="sec1">
    <h1>First Order Heading</h1>
    <p></p>

    <div id="sec1.1">
    <h2>Second Order Heading</h2>
      <p></p>
    </div>

  </div>

/Jelks
Received on Tuesday, 1 February 2000 11:29:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT