O'Reilly logo

HTML5 Multimedia Developer's Guide by Lee Cottrell, Ken Bluttman

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

Chapter 10HTML5 Document Structure

Web designers have been struggling with layout since the first version of HTML. Originally, layout was accomplished using tables. This practice, while still appropriate in some cases, lost favor to CSS and the div element, which is HTML4’s method of placing elements on the page. The div element allows developers to chop the page into as many logical sections as they want. CSS classes can then set custom formats for each div. However, the div element presents a couple of problems. In this chapter, we’ll first look at those problems and then describe how HTML5’s new layout tags help to solve them.

The Problems with Div

There are two big problems with the div element. The first problem that new developers encounter ...

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