This coding:
<P>This is paragraph one.</P><P>This is paragraph two.</P>
or
This is paragraph one.<P>This is paragraph two.
Renders:
This is paragraph one.
This is paragraph two.
Note - The ALIGN=CENTER | LEFT | RIGHT attribute may now be used with the <P> tag when applying alignment to a single paragraph. However, if applying alignment to a larger portion of text, or text and other entities, favor the <DIV> tag (e.g., <DIV ALIGN=CENTER> ... </DIV>) to center blocks of text.
Also Note - The ALIGN= attribute has been deprecated for most tags in HTML 4.01 - strict in favor of style sheets.
This coding:
This is line one.<BR> This is line two.
Renders:
This is line one.
This is line two.
Note - The CLEAR=LEFT | ALL | RIGHT attribute may now be used with the <BR> tag to force the wrapping of text to break and clear an image.
Also Note - The CLEAR= attribute has been deprecated for the <BR> tag in HTML 4.01 - strict in favor of style sheets.
This Coding:
This is line one without white space.<HR> This is line two without white space.
Renders:
This is line one without white space.
This Coding:
This is line one with white space.<P><HR><P> This is line two with white space.
Renders:
This is line one with white space.
This is line two with white space.
Note - In HTML 3.2, the following attributes were introduced for the the <HR> tag; they are all deprecated in "strict" HTML 4.01:
This is line one with white space.<P><HR SIZE=5 WIDTH="80%" NOSHADE><P> This is line two with white space.
Renders:
This is line one with white space.
This is line two with white space.
Example:
When centering, this coding:
<H3 ALIGN=center>This is Header Three Centered</H3>
Renders:
Use the <BLOCKQUOTE> tag to set a block of text off as "quoted." Most browsers will render blockquote as indented from the left and right margins, and sometimes in italics as well.
This coding:
<BLOCKQUOTE>
Attributed to <A HREF="http://www.loc.gov/coll/print/guide/pp2439.jpg">
Nicholas H. Shepherd. <CITE>Abraham Lincoln</CITE></A>. Quarter-plate
daguerreotype, circa 1846. <EM>(Gift of Mary Lincoln Isham)</EM>
</BLOCKQUOTE>
Renders:
Attributed to Nicholas H. Shepherd. Abraham Lincoln. Quarter-plate daguerreotype, circa 1846. (Gift of Mary Lincoln Isham)
This coding:
<PRE>
PACKAGING AND MAILING FEES
FOREIGN
U.S. Surface Air Mail
$20.00 or less $3.50 $4.50 $10.00
20.01 - 50.00 8.50 9.50 18.00
50.01 - 150.00 13.50 14.50 30.00
Over $150.01 8% of 10% of 15% of
value value value
</PRE>
Renders:
PACKAGING AND MAILING FEES
FOREIGN
U.S. Surface Air Mail
$20.00 or less $3.50 $4.50 $10.00
20.01 - 50.00 8.50 9.50 18.00
50.01 - 150.00 13.50 14.50 30.00
Over $150.01 8% of 10% of 15% of
value value value
The DIV tag is used to mark up logical divisions in a document. It can enclose paragraphs, headers and other block elements including images. It is used heavily in HTML 4.01 to apply style sheet settings to blocks of text.
<DIV STYLE="background: #ffffcc; font-family: Arial, Helvetica, sans-serif;">
<A HREF="http://www.loc.gov/poetry/">Poetry in America: A Library of Congress Bicentennial Celebration</A> <BR> Poet Laureate Robert Pinsky and other renowned poets and individuals will read their favorite poems and participate in a symposium, <CITE>"Poetry and the American People,"</CITE> at the Library on April 3 and 4. The event will be cybercast live.</DIV>
Renders:
Poetry in America: A Library of Congress Bicentennial Celebration
Poet Laureate Robert Pinsky and other renowned poets and individuals will read their favorite poems and participate in a symposium, "Poetry and the American People," at the Library on April 3 and 4. The event will be cybercast live.