WebHints: Text Modifiers

Inline Text Modification

Text can be modified by surrounding it with a modification element in the following manner:

<THING>text to be modified</THING>

Modifiers can be divided into two groups: those that provide emphasis for inline (no line breaks) text, and those that provide emphasis for multi-line text. Here is the complete list of inline modifiers.

HTML+ proposes the following:

Netscape Navigator also provides the extension:

Block Text Modification

Other constructs can be used to format whole blocks of text. To include text verbatim (preserving spacing and line breaks and setting in TT font), use:

<PRE>

Preformatted multi-line text.
This is the second line.
This is the third line.
</PRE>

The WIDTH attribute can be used to hint at a wrapping width of the preformatted text. It often defaults to 80.

To format a block of text as a highlighted quote:

<BLOCKQUOTE>

This is a block quote. Most browsers will indent this an cast it in italics but this is not compulsary. Formally, a block quote cannot contain text, but can only contain a construct that can contain text. So it's a good idea to stick a paragraph marker at the start of the block.

</BLOCKQUOTE>

* * Webmaster: ross@ross.net
Linkhere: Click here to find out how to link here.
Copyright: Copyright © Ross N. Williams 1995-1996. All rights reserved.