Some
basic text formatting tags are shown in the table below together with
an example and any comments about the tag.
|
Tag |
Gives You... |
Comments |
|
<B> |
Bold text. |
Needs closing tag |
|
<I> |
Italic text |
Needs closing tag |
|
<U> |
Underlined text |
Needs closing tag |
|
<TT> |
Teletype mono spaced text |
Needs closing tag |
|
<CODE> |
Code text |
Needs closing tag |
|
<CITE> |
Citation text |
Needs closing tag |
|
<STRONG> |
Strong text |
Needs closing tag |
|
<EM> |
Emphasised text |
Needs closing tag |
|
<SAMP> |
Sample text |
Needs closing tag |
|
<KBD> |
Keyboard text |
Needs closing tag |
|
<VAR> |
Variable text |
Needs closing tag |
|
<ADDRESS> |
Address
text
|
Needs closing tag |
|
<BLINK> |
text |
Needs closing tag (Netscape Specific) |
|
<H1> - <H6> |
|
Header text can be H1, H2, H3, H4, H5 or H6 going up in size (Needs
closing tag). |
|
Tag |
About |
|
<FONT> |
Used to format text giving it colour, size and fonts. |
The
<FONT> tag can also have the attributes: face="font name", size="number"
and color="colour".
Text
Positioning
|
Tag |
Gives You... |
|
<p> |
Defines a new paragraph. (Needs no closing tag normally but may sometimes
require it). |
|
<DIV> |
Defines a division. (Needs closing tag). |
|
<CENTER> |
Aligns text between the tags to the center. (Needs closing tag).
|
|
<BR> |
Breaks the line (Starts new line). (Needs no closing tag).
|
The
<P> tag can also have the attribute align="left, right or center".
The
<DIV> tag can also have the align="left, right or center".