hgroups? Sure you do. We looked at those in a previous chapter as a way to group related heading tags logically. Now, we will look at how that new HTML5 element can have added accessibility benefits.
Previously, we looked at Roxane's portfolio as an example:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Roxane</title> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </script>[endif]--> </head> <body> <header> <hgroup> <h1>Roxane is my name.</h1> <h2>Developing websites is my game.</h2> </hgroup> </header> </body> </html>
In the past, we might have coded the body area of her site this way:
<body> <div> <div> <h1>Roxane is ...