<ADDRESS
CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>...
</ADDRESS>
<ADDRESS>
Netscape Communications Corporation<BR>
501 East Middlefield Road<BR>
Mountain View, CA 94043<BR>
</ADDRESS>
The file blocks.htm shows this example in action in a separate window.
BLOCKQUOTE elements start on a new line. Netscape Navigator adds extra space before a BLOCKQUOTE element, but not all browsers do.
Syntax
<BLOCKQUOTE>...
CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>...
</BLOCKQUOTE> Example
The file blocks.htm shows this example in action in a separate window.<BLOCKQUOTE>
Bob Lisbonne, vice president of client product marketing at
Netscape said:
<BLOCKQUOTE>
"Networked enterprises can begin to deploy Webtops as consistent
corporate computing interfaces that span all platforms and can
be updated dynamically."
</BLOCKQUOTE>
</BLOCKQUOTE>
<DIV
ALIGN="LEFT"|"CENTER"|"RIGHT"
CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>
ALIGN
specifies the horizontal alignment of the block of content. The value can be one of the following:
- LEFT aligns the contents of the DIV block to the left (the default).
- CENTER centers the contents of the DIV block.
- RIGHT aligns the contents of the DIV block to the right.
<DIV ALIGN=RIGHT STYLE=REDSTYLE>
The file blocks.htm shows this example in action in a separate window.
<H1>Aligning a Block of Content to the Right</H1>
<P>You can use a DIV tag to align a block of content to the right.</P>
<P>The content can include anything you like, including tables,
images, lists, and so on. Note, however, that right-aligned lists
often do not look very neat.</P>
</DIV>
<H1 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H1>
<H2 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H2>
<H3 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H3>
<H4 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H4>
<H5 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H5>
<H6 ALIGN="LEFT"|"CENTER"|"RIGHT">...</H6>
All the headings from H1 through H6 can also take the following universal attributtes:
CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
ALIGN
specifies the horizontal alignment of the heading. The value can be one of these:
- LEFT aligns the heading flush left (the default).
- CENTER centers the heading text.
- RIGHT aligns the heading flush right.
<H1>Level 1 Heading</H1>
<H2>Level 2 Heading</H2>
<H3>Level 3 Heading</H3>
<H4>Level 4 Heading</H4>
<H5>Level 5 Heading</H5>
<H6>Level 6 Heading</H6>
The file blocks.htm shows this example in action in a separate window.
The closing </P> tag guarantees that the paragraph is followed by extra space. Omitting the closing </P> tag often has no effect, especially if the P tag is being used as a line break (that is, the paragraph has no content), or the paragraph is followed by an element that starts on a new line and is preceded by extra space.
ALIGN
Syntax
<P
ALIGN="LEFT"|"CENTER"|"RIGHT"CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>
...
</P>
specifies the horizontal alignment of the paragraph. Navigator 1.1.The value can be one of these:
<P>Use the P tag to display paragraphs. The P element
starts on a new line, and is preceded by extra space.
<P>
You can also use the P tag to insert a line break with
extra space.In most, but not all, cases, it is OK to omit
the closing tag.
</P>
The file blocks.htm shows this example in action in a separate window.
<
for the < symbol, and use >
for the > symbol.
All PRE elements start on a new line, preceded by extra space.
COLS="columns"
Syntax
<PRE
columns
COLS=""
WRAPCLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>...
</PRE>
specifies the maximum number of characters that fit on a line. This effectively turns on wrapping, and lets you specify the line width in characters.
WRAP
turns on wrapping, so that all lines fit inside the browser.
The mail message said:
<PRE>
To: Lee Smith
From: Chris Brown
Subject: Meeting schedule and agenda for Web Site team
Date: Thurs, 14 Aug 1997 22:00:05
9/20/97 8:00 a.m. Room 218
9/21/97 9:00 a.m. Room 218
9/22/97 2:00 p.m. Room 111
At the first meeting, we should discuss how to use
the <STYLE> tag to make our home page more interesting.
</PRE>
The file blocks.htm shows this example in action in a separate window.
<XMP
CLASS=
"styleClass"
ID=
"namedPlaceOrStyle"
LANG=
"ISO"
STYLE=
"style"
>...
</XMP>
<P>The basic structure of an HTML document is:
<XMP>
<HTML>
<HEAD> header info goes here </HEAD>
<BODY> body content goes here </BODY>
</HTML>
</XMP>
The file blocks.htm shows this example in action in a separate window.
Last Updated: 11/19/97 22:46:33