Division Marker
 
End Tag: Required
Support Key: 2 | 3 | 3.2 | IE3A1 | M | N2
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Top Of Tree | Tag Index | Tag History


What is it?
The DIV tag is used to differentiate content by using a CLASS attribute to the tag. The CLASS value would indicate the TYPE of container (the semantic nature of the division) the text was in, such as a chapter, a section or appendix, etc. DIV is also a catch-all Block Formatting tag with an implied line break before and after.

Within the realm of Style Sheets, this tag is nestable to allow hierarchies of sections, subsections or chapters to be defined. This nesting ability also allows for more powerful Style Sheet mechanisms. One such powerful benefit is overlaid text: although the CSS1 specification does not explicitly mention it, nested divisions can render content on top of one another if layout properties are correctly set and the browser correctly supports negative margin definitions (keep in mind that while this effect can create nice visual effects, it degrades poorly in non-supporting browsers.)

For more information on Style Sheets, please see the Style Sheet Guide.
Attributes
Align
2 | 3 | 3.2 | IE3A1 | M | N2
Required? No
Description:
This indicates the horizontal alignment of the Division block text in the browser window. These values can be over-ridden by style sheets values.
Values: Left [DEFAULT] | Center | Right | Justify

Style Sheet Attributes
[More on Cascading Style Sheets]
Class
2 | 3 | 3.2 | IE3B1 | M | N4B2
Required? No
Description:
This represents an assigned semantic classification grouping(s) for the current tag.
Values:
Given as a comma separated list of alphanumeric characters. Class names may contain spaces (multiple consecutive spaces treated as a single space.)
ID
2 | 3 | 3.2 | IE3B1 | M | N4B2
Required? No
Description:
This assigns an alpha-numeric identifier that is unique to this tag instance. Style sheets may use this attribute to reference the current instance of this tag. Hyperlinks may also use this identifier to serve as a destination.
Values:
An alphanumeric string - initial character must be a letter followed by alphabetic characters, digits, "-" or "." characters. The allowable set of alpha-characters is restricted to the A-Z and a-z set.
Style
2 | 3 | 3.2 | IE3B1 | M | N4B3
Required? No
Description:
This attribute is a text string that provides rendering style information for the current tag.
Values:
Please see the description of inline styles for more information on how to use this attribute and its possible values.
Example
<div ALIGN="right" CLASS="greensection" STYLE="color: lime">text</div>
Parent Model
%Block Format Parent% | %Multimedia Parent% | <Body> | <Basefont>
Content Model
%Text% | %Anchors% | %Virtual Formatting% | %Physical Formatting% | %Line Break Content% | %Multimedia Content% | %Block Content% | <address> | <basefont> | <Hx>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...