Name

<div> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                        <div>...</div>
                     

Denotes the beginning and end of a division of the page. First introduced in HTML 3.2 as a way to define a unique style for each division, only the alignment function (using the align attribute) was implemented by the major browsers.

The <div> tag has proven itself enormously valuable, however, when used in conjunction with style sheets (see Chapter 23).

Attributes

align=center|left|right

Aligns the text within the tags to the left, right, or center of the page.

Get Web Design in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.