This element is also available in our updated HTML 4 reference. Some characteristics may have changed.
Appearance: | <DIV ALIGN=foo> </DIV> |
---|---|
Attributes: | ALIGN=left|right|center |
Contents: | H1, H2, H3, H4, H5, H6, P, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER, BLOCKQUOTE, FORM, HR, TABLE, ADDRESS as well as TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, APPLET, IMG, FONT, BASEFONT, BR, MAP, INPUT, SELECT, TEXTAREA and plain text. |
May occur in: | BODY, DIV, CENTER, BLOCKQUOTE, FORM, TH, TD and DD, LI. |
The DIV tag is used to mark up divisions in a document. It can enclose paragraphs, headers and other block elements. Currently, you can only use it to set the default alignment for all enclosed block elements. Future standards will most likely include more options for DIV.
Just like with other block elements such as P or H1, you can specify left, right and centered alignment.
HTML 3.2 Reference ~ Elements by Function ~ Elements Alphabetically
Home, Forums, Reference, Tools, FAQs, Articles, Design, Links
Copyright © 1996 - 2006. All rights reserved.