HOME
MAIN
NEXT
PREV
HTML Character Level Elements Summary
HOME
MAIN
NEXT
BR Element: Line Break
Usage:
<BR>
Can Contain: empty
Can Be Inside: ADDRESS, BLOCKQUOTE, BODY, CENTER, DIV, FORM,
PRE,
DD, DT, LI,
TD, TH, Hn,
A, CAPTION, character highlighting
Attributes: CLEAR
BR indicates a line break.
- Attributes
- CLEAR="left", "right", "all" (optional).
CLEAR works with ALIGN attribute in IMG or TABLE
only, not in paragraph P.
- <BR CLEAR="left">: Breaks the line and moves the
following text down until it can be flush with the left margin.
- <BR CLEAR="right">: Breaks the line and moves the
following text down until the right margin is clear.
- <BR CLEAR="all">: Breaks the line and moves the
following text down until both margins are clear.
TOP
<P> Here is the
beginning of a paragraph.<BR>
<BR> breaks the line and moves the text down to a new line.
Here is the beginning of a paragraph.
<BR> breaks the line and moves the text down to a new line.
TOP
- Example 2: BR with CLEAR="left"
<P> Here is the text
before the table. Here is the text before the table. Here is the text before the
table.
Here is the text before the table. Here is the text before the table. Here is
the text before the table.
<TABLE ALIGN="left"
BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60"
VSPACE="40">
<CAPTION>TABLE with
ALIGN="left" BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60"
VSPACE="40"</CAPTION>
<TR>
<TH>Header 1</TH>
<TH>Header 2</TH>
<TH>Header 3</TH>
</TR>
<TR>
<TD>Left 1</TD>
<TD ALIGN="right">Right
1</TD> <TD
ALIGN="center">Center
1</TD>
</TR>
<TR>
<TD>Left 2</TD>
<TD ALIGN="right">Right
2</TD> <TD
ALIGN="center">Center
2</TD>
</TR>
</TABLE>
Here is the text after the table. Here is the text
after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the
text after the table.
<P> Here is a
new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
<BR CLEAR="left">
<BR CLEAR="left"> breaks the line and moves the text down to a new line.
<BR CLEAR="all"> breaks the line and moves the text down to a new line.
<BR CLEAR="right"> does not break the line in this case.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
TABLE with ALIGN="left" BORDERCOLORLIGHT="red" BORDER="5"
HSPACE="60" VSPACE="40"
| Header 1 | Header 2 | Header 3 |
| Left 1 | Right 1 | Center 1 |
| Left 2 | Right 2 | Center 2 |
Here is the text after the table. Here is the text after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the text after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
<BR CLEAR="left"> breaks the line and moves the text down to a new line.
<BR CLEAR="all"> breaks the line and moves the text down to a new line.
<BR CLEAR="right"> does not break the line in this case.
TOP
- Example 3: BR with CLEAR="right"
<P> Here is the text
before the table. Here is the text before the table. Here is the text before the
table.
Here is the text before the table. Here is the text before the table. Here is
the text before the table.
<TABLE ALIGN="right"
BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60"
VSPACE="40">
<CAPTION>TABLE with
ALIGN="right" BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60" VSPACE="40"</CAPTION>
<TR>
<TH>Header 1</TH>
<TH>Header 2</TH>
<TH>Header 3</TH>
</TR>
<TR>
<TD>Left 1</TD>
<TD ALIGN="right">Right
1</TD> <TD
ALIGN="center">Center
1</TD>
</TR>
<TR>
<TD>Left 2</TD>
<TD ALIGN="right">Right
2</TD> <TD
ALIGN="center">Center
2</TD>
</TR>
</TABLE>
Here is the text after the table. Here is the text
after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the
text after the table.
<P> Here is a
new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
<BR CLEAR="right">
<BR CLEAR="left"> breaks the line and moves the text down to a new line.
<BR CLEAR="all"> breaks the line and moves the text down to a new line.
<BR CLEAR="right"> does not break the line in this case.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
TABLE with ALIGN="right" BORDERCOLORLIGHT="red" BORDER="5"
HSPACE="60" VSPACE="40"
| Header 1 | Header 2 | Header 3 |
| Left 1 | Right 1 | Center 1 |
| Left 2 | Right 2 | Center 2 |
Here is the text after the table. Here is the text after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the text after the table. Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
<BR CLEAR="right"> breaks the line and moves the text down to a new line.
<BR CLEAR="all"> breaks the line and moves the text down to a new line.
<BR CLEAR="left"> does not break the line in this case.
TOP
- Example 4: BR with CLEAR="all"
<P> Here is the text
before the table. Here is the text before the table. Here is the text before the
table.
Here is the text before the table. Here is the text before the table. Here is
the text before the table.
<TABLE ALIGN="left"
BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60"
VSPACE="40">
<CAPTION>TABLE with
ALIGN="left" BORDERCOLORLIGHT="red"
BORDER="5"
HSPACE="60" VSPACE="40"</CAPTION>
<TR>
<TH>Header 1</TH>
<TH>Header 2</TH>
<TH>Header 3</TH>
</TR>
<TR>
<TD>Left 1</TD>
<TD ALIGN="right">Right
1</TD> <TD
ALIGN="center">Center
1</TD>
</TR>
<TR>
<TD>Left 2</TD>
<TD ALIGN="right">Right
2</TD> <TD
ALIGN="center">Center
2</TD>
</TR>
</TABLE>
Here is the text after the table. Here is the text
after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the
text after the table.
<P> Here is a
new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
Here is a new paragraph after the table. Here is a new paragraph after the
table.
<BR CLEAR="all">
<BR CLEAR="all">
breaks the line and moves the text down to a new line.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
Here is the text before the table. Here is the text before the table. Here is the text before the table.
TABLE with ALIGN="left" BORDERCOLORLIGHT="red" BORDER="5"
HSPACE="60" VSPACE="40"
| Header 1 | Header 2 | Header 3 |
| Left 1 | Right 1 | Center 1 |
| Left 2 | Right 2 | Center 2 |
Here is the text after the table. Here is the text after the table. Here is the text after the table.
Here is the text after the table. Here is the text after the table. Here is the text after the table. Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
Here is a new paragraph after the table. Here is a new paragraph after the table.
<BR CLEAR="all"> breaks the line and moves the text down to a new line.
HOME
MAIN
NEXT
PREV
HR Element: Horizontal Divider
Usage:
<HR>
Can Contain: empty
Can Be Inside: BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI,
TD, TH
Attributes: ALIGN,
NOSHADE, SIZE, WIDTH,
(COLOR:
Internet Explorer only)
HR draws a horizontal line completely across the screen, and is often
used to divide sections within a single document. An HR terminates any preceding
paragraph.
- Attributes
- ALIGN="left", "center", "right"
(optional) If HR does not span the page, then it can, like a
heading, be aligned on the page. Default is "center".
- COLOR="#rrggbb" or "color" (optional,
Internet Explorer only)
- NOSHADE (optional) Browsers usually render an HR as a shaded,
chiseled bar drawn across the page
- SIZE="number" (optional) Specifies, in pixels, the
vertical thickness of the horizontal rule. Default is 1.
- WIDTH="number" or "number%" (optional)
"number" specifies the absolute width in pixels;
"number%" specifies the width as a percentage of the possible
full width of a horizontal rule.
- Examples:
- Example 1: HR
- Example 2: HR with ALIGN="right", SIZE="5",
WIDTH="50%"
- Example 3: HR with ALIGN="center", NOSHADE,
SIZE="5", WIDTH="50%"
- Example 4: HR with ALIGN="left", COLOR="#FF0000",
SIZE="5", WIDTH="50%"
TOP
<HR>
TOP
- Example 2: HR with ALIGN="right", SIZE="5",
WIDTH="50%"
<HR ALIGN="right"
SIZE="5"
WIDTH="50%">
TOP
- Example 3: HR with ALIGN="center", NOSHADE,
SIZE="5", WIDTH="50%"
<HR ALIGN="center"
NOSHADE SIZE="5" WIDTH="50%">
TOP
- Example 4: HR with ALIGN="left", COLOR="#FF0000",
SIZE="5", WIDTH="50%"
<HR ALIGN="left"
COLOR="#FF0000" SIZE="5"
WIDTH="50%">
HOME
MAIN
NEXT
PREV
SPACER Element: Horizontal and Vertical Spacing (Netscape only)
Usage:
<SPACER>
Can Contain: empty
Can Be Inside: Unspecified; probably: ADDRESS,
BLOCKQUOTE, BODY, CENTER, DIV, FORM,
MULTICOL,
DD, DT, LI, P, TD, TH, Hn,
A, APPLET, NOEMBED, OBJECT, CAPTION, character highlighting
Attributes: ALIGN,
HEIGHT, SIZE, TYPE, WIDTH
SPACER introduces arbitrary horizontal or vertical spacing within typed
text. TYPE="block" spacing is analogous to inserting a
transparent (invisible image of size HEIGHT and WIDTH, and allows
insertion of horizontal and vertical space at the same place. TYPE="horizontal"
spacers introduce simple horizontal tab-like spacing of length specified by SIZE.
TYPE="vertical" spacers introduce a vertical tab, again with
size specified by SIZE. In this case, however, the tab also implies a
line break.
TIP: Use Fully Transparent Images Instead of SPACER. This way is understood
on many browsers.
- Attributes
- ALIGN="top", "middle", "bottom", "left", "right"
(mandatory: TYPE="block" only) Specifies the page
alignment for the spacer, relevant for TYPE="block"
spacers only. Such spacers are treated in the same manner as images, so
that the alignment options have the same meanings as for the IMG
element.
- HEIGHT="number" (mandatory: TYPE="block"
only) Specifies the height, in pixels, of the spacer.
- SIZE="number" (mandatory: TYPE="horizontal"
or "vertical" only) Specifies, in pixels, the horizontal or vertical
dimension of the spacer. The effect is similar to a horizontal or
vertical tab.
- TYPE="block", "horizontal",
"vertical" (mandatory) Specifies the type of spacer.
- "block": is analogous to an invisible image; you must
also specify the HEIGHT and WIDTH, and desired ALIGNment
of this type of spacer.
- "horizontal", "vertical" : are analogous to
tabs--in these cases, the only required attribute is SIZE,
which specifies the tab size. Note that a "vertical"
spacer also introduces a line break.
- WIDTH="number" (mandatory: TYPE="block"
only) Specifies the width, in pixels, of the spacer.
- Examples:
- Example 1: SPACER with TYPE="block"
ALIGN="top" HEIGHT="200" WIDTH="100"
- Example 2: SPACER with TYPE="block"
ALIGN="middle" HEIGHT="200" WIDTH="100"
- Example 3: SPACER with TYPE="block"
ALIGN="bottom" HEIGHT="200" WIDTH="100"
- Example 4: SPACER with TYPE="block"
ALIGN="left" HEIGHT="200" WIDTH="100"
- Example 5: SPACER with TYPE="block"
ALIGN="right" HEIGHT="200" WIDTH="100"
- Example 6: SPACER with TYPE="horizontal"
SIZE="50"
- Example 7: SPACER with TYPE="vertical"
SIZE="50"
TOP
- Example 1: SPACER with TYPE="block" ALIGN="top"
HEIGHT="200" WIDTH="100"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 2: SPACER with TYPE="block" ALIGN="middle"
HEIGHT="200" WIDTH="100"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 3: SPACER with TYPE="block" ALIGN="bottom"
HEIGHT="200" WIDTH="100"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 4: SPACER with TYPE="block" ALIGN="left"
HEIGHT="200" WIDTH="100"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 5: SPACER with TYPE="block" ALIGN="right"
HEIGHT="200" WIDTH="100"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 6: SPACER with TYPE="horizontal"
SIZE="50"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
TOP
- Example 7: SPACER with TYPE="vertical"
SIZE="50"
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
Here is the text floating around the spacer. Here is the text floating around the spacer.
HOME
MAIN
PREV
WBR Element: Word Break
Usage:
<WBR>
Can Contain: empty
Can Be Inside: Unspecified; probably: ADDRESS,
BLOCKQUOTE, BODY, CENTER, DIV, FORM,
MULTICOL, PRE,
DD, DT, LI, P, TD, TH, Hn,
A, APPLET, NOEMBED, OBJECT, CAPTION, character highlighting
Attributes: none
WBR marks a word space, within a NOBR element, where a word break
is allowed. WBR does not force a break, but simply tells the browser
where a word break is allowed, should one be needed. WBR is only meaningful
within a NOBR.
HOME
MAIN
PREV