HTML - Tags - <hgroup>

#62 of 147
hgroup
Next hr

 <html>
 <body>
     <header>
         <hgroup>
            <h1>Science News Today</h1>
            <h2>Collision with a parallel universe?</h2>
            <p>
                New data suggests that a giant cold spot in the microwave
                background radiation of our universe could be a bruise
                from a collision with a parallel universe.
            </p>
         </hgroup>
     </header>
 </body>
 </html>
 

The hgroup element creates a multilevel heading by enclosing a set of h1 to h6 elements.

Experimental

The hgroup element makes it clear that all headings in the group are related to the content immediately following (as opposed to the nearest subheading).

A live example:


Science News Today

Collision with a parallel universe?

New data suggests that a giant cold spot in the microwave background radiation of our universe could be a bruise from a collision with a parallel universe.


N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath