The <DIV> element is basically used as a 'container' to contain other HTML elements and display them discretely from the rest of the document by adding paragraph breaks before and after the contents of the <DIV> element.
<DIV
ALIGN=alignment
CLASS=Style Sheet class name
DATAFLD=colname
DATAFORMATAS=HTML| TEXT
DATASRC=Data Source
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
STYLE=styling
TITLE=text
event = script
>
Parameter |
Description |
ALIGN |
Specifies the alignment for the control-like element. The possible values of this attribute are: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom. |
CLASS |
Class of the tag being defined. This is used to associate a subclassed style sheet with the tag. |
DATAFLD |
Column name from the data source object that supplies the bound data. |
DATAFORMATAS |
Indicates whether the bound data is HTML or plain text. |
DATASRC |
ID of the data source object that supplies the data that is bound to this element. |
ID |
SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Specifies which language to use in ISO standard language abbreviation form. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
STYLE |
Inline style sheet for the tag. |
TITLE |
The TITLE attribute is for advisory information (unless used with a mailto: attribute). The Title attribute should provide the title of the document whose address is given by the HREF attribute. The contents of the title attribute will be displayed in a tooltip during the mouse moves on the link. Internet Explorer 4.0 (and above) is the only browser to implement this. |
event |
Can be one or more of these events: |
<DIV>This is a section.</DIV><DIV ALIGN=CENTER>
This is another section, and the text is centered.</DIV>
The code is rendered as:
You should not include the SELECT, BUTTON, INPUT, or A within the BUTTON tag.
This element is a block element. Both the start and end tags are required.