• Resolved bloghotel

    (@bloghotel)


    W3C validator doesn’t like

    hgroup

    :
    my blog:

    Element hgroup not allowed as child of element header in this context. (Suppressing further errors from this subtree.)

    and

    The hgroup element is obsolete. To mark up subheadings, consider either just putting the subheading into a p element after the h1-h6 element containing the main heading, or else putting the subheading directly within the h1-h6 element containing the main heading, but separated from the main heading by punctuation and/or within, for example, a span class=”subheading” element with differentiated styling. To group headings and subheadings, alternative titles, or taglines, consider using the header or div elements.

    neither

    <br …/>

    .
    Do I change the code: `<hgroup>
    <a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a>
    <br …/> <a class=”site-description”><?php bloginfo( ‘description’ ); ?></a>
    </hgroup>`
    in header.php ?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hgroup W3C validator’ is closed to new replies.