O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Generic Containers

Sometimes you need to wrap a container around a segment of content because you want to apply some styling with CSS or maybe an effect with JavaScript. Your page just wouldn’t be the same without it Image. But, when you assess the content, you determine that using the likes of article, section, aside, nav, or other elements wouldn’t be appropriate semantically. What you really need is a generic container, one without any semantic meaning at all. That container is the div element (think of a “division”) Image. With a div in place, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required