W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] About Descendent Tags

From: Diego Eis <diegoeis@gmail.com>
Date: Tue, 7 Apr 2009 13:45:39 -0300
Message-ID: <d12877180904070945ha41b89al21cdf2fd8e48f1ff@mail.gmail.com>
This is not correct in HTML4?
<h1>Romeo and Juliet</h1>
<h3>a tragedy in Italian style</h3>

I don't know why I mark the headers above with <header>.


On Tue, Apr 7, 2009 at 10:30 AM, Kristof Zelechovski
<giecrilj at stegny.2a.pl> wrote:
> A group of headings looks as follows:
>
> <header
>><h1 >Romeo and Juliet</h1
>><h3 >a tragedy in Italian style</h3 ></header >
>
> This is meant to replace the clumsy HTML4 way:
>
> <H1 >Romeo and Juliet <BR ><SMALL >a tragedy in Italian style</SMALL ></H1 >
>
> HTH,
> Chris
>
>
>
Hello,
my name is Diego Eis. I'm from Brazil. Sorry for my bad english, ok? :D
I have a website about web standards in pt-br called Tableless.com.br.
And I have a little question.

I have read some HTML5 articles and the specifications in WHATWG
website. I read, for example, the element 'h3' or others headers not
appear as a descendant of the 'footer' element. And I see also the
element 'nav' must not appear as a descendant of the header element.
I don't understand why. The obviously for me when I use the element
header, I say to browsers that element is a header and all elements
descendant are components of this header.
When I write HTML or XHTML, the strutucture look like this:
<div id="header">
  <h1>logo</h1>
  <ul menu>
  <form search>
</div>

With HTML5 header element, I can't do this. The structure above have a
good semantic. The obviously don't be the same code, but using the
header element and not div#header?

Forgive if this question pass to here in other time. I realy want to
know and discuss this point.

Cheers,
Diego Eis
Tableless.com.br
Received on Tuesday, 7 April 2009 09:45:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:11 UTC