ADDRESS elements start on a new line. Most browsers do not add extra space before an ADDRESS element.
<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.
<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>The file blocks.htm shows this example in action in a separate window.
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> <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>The file blocks.htm shows this example in action in a separate window.
Heading elements start on a new line. All browsers add extra space before heading elements.
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.
You can also use the P tag to insert a line break with extra space. To insert a line break without adding extra space, use the BR tag.
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
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.
Using this tag, you can insert and reproduce formatted text, preserving its original layout. This tag is frequently used to show code listings, tabulated information, and blocks of text that were created for some text-only form, such as electronic mail messages and news postings.
Unlik the XMP and PLAINTEXT tags, the PRE tag does not suppress interpretation of other HTML tags. Since the PRE element interprets HTML tags, you must use special symbols for any character that has a meaning in HTML that you wish to be displayed rather than interpreted. For example, use < for the < symbol, and use > for the > symbol.
All PRE elements start on a new line, preceded by extra space.
COLS="columns"
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.
You can use the XMP tag to display text that includes characters that HTML normally interprets, such as the < and > symbols that enclose an HTML tag.
All XMP elements start on a new line, preceded by extra space.
The file blocks.htm
shows this example in action in a separate window.
Last Updated: 01/26/98 21:33:44
Copyright © 1998 Netscape Communications Corporation