Grow your CSS skills. Land your dream job.

HTML5 Validation Error – Header Not Descendent?

  • # January 11, 2012 at 4:44 pm

    Hi there,

    Is anybody aware of this error when they run their site through the validator?

    The element header must not appear as a descendant of the footer element.

    An example of my code is as follows:



    Other Information:





    I thought I coded it right, but maybe I’m missing something?

    # January 11, 2012 at 4:46 pm

    Oh, hmm — I may understand the error.

    You see, I have a footer, a really big footer with lots of information, and it does have header elements in it. So, is it true to believe that you can’t have

    's

    in a really big

    ?

    # January 11, 2012 at 4:57 pm

    Last I checked you were not supposed to put a ‘header’ inside the ‘footer’ element.

    # January 11, 2012 at 7:21 pm

    Oooh you know it makes sense, until I see a design that has a headline in it and then it stumps me. :)

    # January 11, 2012 at 8:09 pm

    You can put h1, h2, ... , h6 in your footer but not header blocks.

    # January 12, 2012 at 1:20 pm

    You can also use

    Which can contain h1-h6s.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".