HOME            MAIN            NEXT

HTML Block Elements Summary


HOME            MAIN            NEXT 

BODY Element: Document Text Body

Usage:                <BODY>...</BODY>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE

Can Be Inside:    HTML
Attributes:           ALINK, BACKGROUND, BGCOLOR, LINK, TEXT, VLINK,
                           (BGPROPERTIES, LEFTMARGIN, TOPMARGIN
Internet Explorer only)
BODY contains the document proper, as opposed to the meta-information found in the HEAD.
HOME            MAIN            NEXT            PREV

ADDRESS Element: Address information

Usage:                <ADDRESS>...</ADDRESS>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, INPUT, SELECT, TEXTAREA, P
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DIV, FORM, TD, TH
Attributes:           none
ADDRESS denotes information such as addresses, electronic signatures, or list of authors.
TOP

<ADDRESS><A HREF="mailto:[email protected]">C.S.O</A></ADDRESS>

C.S.O


TOP

<ADDRESS>Santa Claus<BR>
Christmas Holiday Specialist<BR>
North pole, CANADA HOHOHO<BR>
Tel: (555) 555-POLE
</ADDRESS>

Santa Claus
Christmas Holiday Specialist
North pole, CANADA HOHOHO
Tel: (555) 555-POLE


HOME            MAIN            NEXT            PREV

BLOCKQUOTE Element: Block Quotations

Usage:                <BLOCKQUOTE>...</BLOCKQUOTE>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           none
BLOCKQUOTE marks a block of text as a quotation. Browsers can render this in various ways: for example, by indenting the BLOCKQUOTE element, and by offsetting it from the preceding and following text. A BLOCKQUOTE also causes a paragraph break, and terminates preceding paragraph
TOP

<BLOCKQUOTE>Here is an example of BLOCKQUOTE. Here is an example of BLOCKQUOTE.
Here is an example of BLOCKQUOTE. Here is an example of BLOCKQUOTE.
</BLOCKQUOTE>

Here is an example of BLOCKQUOTE. Here is an example of BLOCKQUOTE. Here is an example of BLOCKQUOTE. Here is an example of BLOCKQUOTE.


HOME            MAIN            NEXT            PREV

CENTER Element: Center the enclosed text horizontally

Usage:                <CENTER>...</CENTER>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           none
CENTER center-align text enclosed within the element, include any enclosed blocks of text, with the exception of left- or right-aligned images or tables, or block elements for which the alignment is specified by the element's own alignment attribute. In particular, CENTER is often used to center a TABLE between margins. Note that CENTER introduces a line break both before and after the centered text, so that only the enclosed text is centered-- CENTER does not introduce any extra spacing beyond that of regular line break.
TIP: Use DIV with ALIGN="center" instead of CENTER. DIV can be linked easily to stylesheet formatting control, while CENTER can not.
TOP

<CENTER>Here is an example of CENTER. Here is an example of CENTER.
Here is an example of CENTER. Here is an example of CENTER.
Here is an example of CENTER. Here is an example of CENTER.
</CENTER>

Here is an example of CENTER. Here is an example of CENTER. Here is an example of CENTER. Here is an example of CENTER. Here is an example of CENTER. Here is an example of CENTER.


HOME            MAIN            NEXT            PREV

DIV Element: A block division of a document

Usage:                <DIV>...</DIV>
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           ALIGN
DIV marks a block of the document as a logical group or division, and is used to specify generic property for the entire block.
TOP

<DIV ALIGN="left"> <b>DIV</b> with <b>ALIGN</b>=&quot;left&quot; indicates that all the text within the
DIV element should be left-aligned, unless this alignment specification is
overridden by an element within the DIV
</DIV>

DIV with ALIGN="left" indicates that all the text within the DIV element should be left-aligned, unless this alignment specification is overridden by an element within the DIV


TOP

<DIV ALIGN="right"> <b>DIV</b> with <b>ALIGN</b>=&quot;right&quot; indicates that all the text within the
DIV element should be right-aligned, unless this alignment specification is
overridden by an element within the DIV
</DIV>

DIV with ALIGN="right" indicates that all the text within the DIV element should be right-aligned, unless this alignment specification is overridden by an element within the DIV


TOP

<DIV ALIGN="center"> <b>DIV</b> with <b>ALIGN</b>=&quot;center&quot; indicates that all the text within the
DIV element should be center-aligned, unless this alignment specification is
overridden by an element within the DIV
</DIV>

DIV with ALIGN="center" indicates that all the text within the DIV element should be center-aligned, unless this alignment specification is overridden by an element within the DIV
 
HOME            MAIN            NEXT            PREV

MULTICOL Element: Multicolumn Text (Netscape Navigator only)

Usage:                <MULTICOL>...</MULTICOL>
Can Contain:      Unspecified; probably: characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, NOSCRIPT, SCRIPT, SPACER, [ISINDEX], WBR,
                           INPUT, SELECT, TEXTAREA, EMBED, NOEMBED, OBJECT,
                           DIR, DL, MENU, OL, UL, P, HR, Hn,
                           ADDRESS, BLOCKQUOTE, CENTER, DIV, FORM, MULTICOL, PRE, TABLE

Can Be Inside:    Unspecified; probably: ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, 
                           MULTICOL, LI, TD, TH, APPLET, NOEMBED, OBJECT
Attributes:           COLS, GUTTER, WIDTH
MULTICOL specifies text to be displayed in multicolumn format, with the attributes specifying the number of columns to use and the spacing to leave between columns.
TOP

<MULTICOL COLS="2" GUTTER="15">
<P>
Here is the paragraph for the first column text. Here is the paragraph for the first column text.
<P>Here is the paragraph for the second column text. Here is the paragraph for the second column text.
</MULTICOL>

Here is the paragraph for the first column text. Here is the paragraph for the first column text.

Here is the paragraph for the second column text. Here is the paragraph for the second column text.


HOME            MAIN            NEXT            PREV

P Element: Paragraph

Usage:                <P>...(</P>)
Can Contain:      characters, character highlighting, A, APPLET, BR, IMG,
                          BASEFONT, MAP, SCRIPT, INPUT, SELECT, TEXTAREA           
Can Be Inside:    ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           ALIGN
P
marks a paragraph block.
TOP

<P ALIGN="left"><b>ALIGN</b>=&quot;left&quot;: left-justify the text. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.
</P>

ALIGN="left": left-justify the text. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.



TOP

<P ALIGN="right"><b>ALIGN</b>=&quot;right&quot;: right-justify the text. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.

ALIGN="right": right-justify the text. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.


TOP

<P ALIGN="center"><b>ALIGN</b>=&quot;center&quot;: center the text between the margins. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.

ALIGN="center": center the text between the margins. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.


TOP

<P ALIGN="justify"><b>ALIGN</b>=&quot;justify&quot;: justify the text between left and right margin.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.

ALIGN="justify": justify the text between left and right margin. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.


HOME            MAIN            PREV

PRE Element: Preformatted Text

Usage:                <PRE>...</PRE>
Can Contain:      characters, B, CITE, CODE, DFN, EM, I, KBD, S, SAMP,
                          STRIKE, STRONG, TT, U, VAR, A, APPLET, BR, 
                          MAP, SCRIPT, INPUT, SELECT, TEXTAREA           
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           WIDTH
PRE marks text to be displayed with a fixed-width typewriter font. In particular, the PRE environment preserves the line breaks and space characters of the original text--this is the only HTML element that does so.
TOP

<PRE>Example of &lt;PRE&gt;&lt;/PRE&gt;. Presentation AS-IS. No &lt;IMG&gt;, &lt;P&gt;, heading elements, list elements,
and &lt;ADDRESS&gt; in &lt;PRE&gt;
</PRE>

Example of <PRE></PRE>. Presentation AS-IS. No <IMG>, <P>, heading elements, list elements,
and <ADDRESS> in <PRE>


TOP

<P> A &lt;PRE&gt;text&gt;/PRE&gt; inside a paragraph will start on a new line. <PRE>This text is inside
<B>PRE</B>, and it starts on a new        line.</PRE>

A <PRE>text>/PRE> inside a paragraph will start on a new line.

This text is inside 
PRE, and it starts on a new       line.

HOME            MAIN             PREV

 

 

Hosted by www.Geocities.ws

1