Page Formatting

 

Page Formatting Tags

<BLOCKQUOTE> blockquote: indicates content quoted from another source. This block element should be used ideally only when the quotation is longer and will likely span several lines (for shorter, in-line quotations the new <Q> element is suggested.) It is usually rendered with a left indent and possibly an equal right indent as well. Example:
<blockquote>
Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country.
<blockquote>
Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country.
</blockquote>
</blockquote>
Displays:
Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country.
Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country. Now is the time to come to the aid of your country.
<BR> breakline: explicitly indicates that a line break be placed in a section of content. This overrides the typical HTML behavior which lets the browser decide when to put line breaks in a document. The same indentation level applied to the previous line will be applied to the new line of content. Example:
This is an example of a line <br> break moving text to the next line.
Displays:
This is an example of a line
break moving text to the next line.
<CENTER> center: centers the text it contains in the browser window. The element was created to fill the need for authors to have some text alignment controls, but most of the effects this element produces have been absorbed by other block formatting elements as the ALIGN attribute (which extends control to right alignment and justification as well.)
The interaction rules for this element are somewhat unusual since it was created by Netscape and implemented by many other browsers before it was officially integrated in to HTML 3.2. CENTER behaves most closely like other block formatting elements (in that a block is defined by having a line break before and after the contained content.) Example:
<center>This is an example of centered text.</center>
Displays:
This is an example of centered text.
<DIV> div: allows for alignment and formatting of a block of text (with an implied line break before and after).
Within the realm of Style Sheets, this element is nestable to allow hierarchies of sections, subsections or chapters to be defined. This nesting ability also allows for powerful Style Sheet mechanisms to be applied. Example:
<div align="right">This is an example of right justified text.</center>
Displays:
This is an example of right justified text.
<NOBR> nobreak: for special sequences of text where you do not want a the browser to insert a line break where there might a space. The <nobr> tag works similar to using the hard-space character in a word processor. See <WBR> below.
<P> paragraph: defines a paragraph. The exact indentation, leading space, etc. of a paragraph is not specified and may be a function of other tags, style sheets, etc. Paragraphs are typically surrounded by a vertical space of one line or a half line. Additionally, the first line in the paragraph may be indented in some cases. Example:
This is some text before the start of the new paragraph. <p>This is an example of text inside of a paragraph.</p> This is some text after the paragraph.
Displays:
This is some text before the start of the new paragraph.

This is an example of text inside of a paragraph.

This is some text after the paragraph.

You can also use the paragraph tag to align text. Example:
This is some text before the start of the new paragraph. <p align="center">This is an example of text inside of a paragraph with the <code>align="center"</code> attribute.</p> This is some text after the paragraph.
Displays:
This is some text before the start of the new paragraph.

This is an example of text inside of a paragraph with the align="center" attribute.

This is some text after the paragraph.
<WBR> word break: used for the very rare case when you have a <NOBR> section and you know exactly where you want it to break or when you know where you want a possible word-break to occur. This tag does not work correctly in some browsers. For example, to see how the <WBR> tag and the <NOBR> tag work in this browser, consider the following HTML code:
<nobr>This is a really super-duper, extremely long run of no <wbr> break text which should be broken only where we tell it to and nowhere else</nobr>
Displays:
This text will be displayed by the browser like so: This is a really super-duper, extremely long run of no break text which should be broken only where we tell it to and nowhere else