![]() | Text Styles |
|
<I>...</I>
Changes the textstyle to italic.
<U>...</U>
Changes the textstyle to underlined. Note that some people may think the text is a
link if it's underlined. NS3 IE
<TT>...</TT>
Changes the textstyle to a Monotype font, usually Courier.
<S[TRIKE]>...</S[TRIKE]>
Strikethrough style, which is text with a horizontal line through it. The abbreviational
form does not work in older browsers like Netscape Navigator 2.0. (NS3 IE)
<SUP>...</SUP>
Stands for 'superscript'.
<SUB>...</SUB>
Stands for 'subscript'.
Logical Styles
<EM>...</EM>
Emphasised text. Usually shows up in italics. This tag was a part of the first HTML-definition
and, differently from the I-tag, it will have effect even in very old browsers.
<CITE>...</CITE>
Indicates a citation, usually rendered in italics.
<CODE>...</CODE>
An example of Machinecode. Usually shows up in a typewriter font like courier.
<KBD>...</KBD>
Stands for 'user keyboard entry', which is text that could have been typed by the
user, like an instructional example. Usually shows up in a typewriter font, like
courier, and sometimes in bold.
<SAMP>...</SAMP>
Stands for 'computer status message'. Usually shows up in a typewriter font, like Courier.
<STRONG>...</STRONG>
Strongly emphasised text. Usually shows up in bold. This tag was a part of the first
HTML-definition and, differently from the B-tag, it will have effect even in very
old browsers.
<VAR>...</VAR>
Stands for 'variable'. Usually rendered in italics.
<XMP>...</XMP>
Stands for 'example', usually displayed in a typewriter font. Text within this tag
will not be HTML-formatted, so you may put HTML-tags here that will be displayed
in the browser as text.
<ADDRESS>..</ADDRESS>
Text appears in italics. Use it in the end of the document to display the authors
email address, for example. Some search engines may take notice on the text as information
on the author.
<BLOCKQUOTE>...</BLOCKQUOTE>
Use it to separate a text from the rest of the page by displaying it as an indented
block of text.
<PLAINTEXT>...</PLAINTEXT>
Temporarily turn off the HTML and displays the source, including linebreaks and multiple
spaces. It seems like a simple way to put PLAINTEXT before and after a plain textfile
and put it on the web, but it's not recommended.
<PRE [WIDTH="n "]>...</PRE>
Make the browser to display the text as it appears in the HTML code, including linebreaks
and multiple spaces. WIDTH is the maximum length of a line in characters before it
wraps. Links will work within PRE-formatted text.
<SPAN STYLE="cssAtributes ">...</SPAN>
Defines style sheet formatting to the text, please see the Style Sheets-chapter.
<BLINK>...</BLINK>
Used to make blinking text. Some people like it, some people does not. NS
<DFN>...</DFN>
Stands for 'definition'. Usually shows up in italics or bold italics.
<LISTING>...</LISTING>
Works like the TT-tag.
Comments
<!-- ... -->
Anything between <! and > are ignored by the browser. This is a useful tag to temporarily
or definitely hide a text in the browser. As described in the Introduction to HTML-appendix,
no browser will display what's inside this code. Many people uses comments as reminders for themselves or co-authors of the page, and they are also used to
hide JavaScript and Stylesheet codes from older browsers. Don't use ">"-letters within the comments though.
Change Textsize
<FONT [SIZE="n |+n |-n "] [COLOR="color "] [FACE="fonts ">...</FONT>
SIZE is a number between 1 (smallest text) and 7 (largest). You can also increase
and reduce the size, for example +3. COLOR is the color of the text. FACE is a comma-separated
list of fontnames. You may also change the default textsize with the BASEFONT-tag, and change the default textcolor with the BODY-tag.
<Hn [ALIGN="left|center|right"]>...</Hn>
Stands for "header". n is a number between 1 (largest) and 6 (smallest). Headers are
automatically surrounded by blank lines. ALIGN is the alignment of the header, by
default the same as the surrounding text.
<BIG>...</BIG>
Makes the text big.
<SMALL>...</SMALL>
Makes the text small.
Scrolling Text
<MARQUEE...>...</MARQUEE>
An auto-scrolling text. The following parameters can be used: IE
<[WIDTH="n |n %" HEIGHT="n |n %"]
Sets the width and height of the marquee.
<[VSPACE="n " HSPACE="n "]
Defines the space between the vertical and horizontal ends of the marquee.
<[ALIGN="top|middle|bottom"]
Sets the align of the marquee.
<[BEHAVIOR="scroll|slide|alternate"]
Defines the method for the marquee to be used. SCROLL scrolls the text from one side
to the other and is the default value. SLIDE does the same, but stops when the text
has reached the other side, and is still displayed. ALTERNATE bounces the text between
the sides.
<[DIRECTION="left|right"]
Defines the side to start from.
<[BGCOLOR="color "]
Defines the background color for the marquee.
<[LOOP="n |infinite"]
Defines the number of loops for the text. INFINITE loops until the page is closed.
<[SCROLLAMOUNT="n "]
Sets the number of pixels between succeeded drawn text scrolls.
<[SCROLLDELAY="n "]
Sets the number of milliseconds between succeeded drawn scrolls.