home    egovision web resource centre    

HTML Tags Encyclopaedia - Text Tags
Address

<ADDRESS> text </ADDRESS>

Defines text normally describing contact information of some kind.
html3+ NOWRAP - stops the browser from wrapping text except when <BR> tags are used.

Big Text
ie3+
n2+ html3.2+
<BIG> text </BIG>

Renders text in a larger than normal style.
Block Quote

<BLOCKQUOTE> text </BLOCKQUOTE>
HTML3+ <BQ> text </BQ>

Defines text that is quoted from elsewhere.
Many browsers display it indented.
HTML3+NOWRAP - stops the browser from wrapping except at a BR tag.
HTML3+ CLEAR = "attributes" - used to position a quote after a graphic(LEFT, RIGHT, or ALL) specifying which margin should be clear.

Bold

<B> text </B>

Renders text in boldface. Also use STRONG.

Citation

<CITE> text </CITE>

Renders text often in italics depending on browser presets and should be used when citing a book or other work.
Code

<CODE> text </CODE>

Renders text in a fixed width font dependant on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.

Definition
ie2+
html3.2+
<DFN> text </DFN>

Renders text often in italics depending on browser presets and should be used when defining a term.
Emphasized

<EM> text </EM>

Renders text often in italics depending on browser presets that should be emphasized.
Example

<XMP> text </XMP>

Renders example text. It should no longer be used because of its poor handling of nested tags. Use PRE or SAMP instead.
Font
html3.2+
n1+ ie2+
<FONT> text </FONT>

Sets text with specific attributes other than that specified in the HEAD tag.
SIZE="number" - can be a whole number from 1 to 7 or + or - a whole number to change relative to basefont.
COLOR="#rrggbb" - sets the colour of the text.
ie2+n1+ FACE="face1, face2..." - specifies the face to be used, such as Arial, Times or Courier.
The first one listed that is installed on the client machine is used.
Heading Text

<Hn> text </Hn> (where n is a whole number 1-6)


 HTML 3.2+ ALIGN="align" - can be LEFT, RIGHT, or CENTER to place the text on the screen.
HTML 3+ SRC="URL" - locates a graphic image to be embedded before the text.
HTML 3+ DINGBAT="entity" - DINGBAT attribute identifies an iconic entity to be embedded there.
HTML 3+ NOWRAP - stops the browser from breaking lines of text to fit to specific widths. Use BR to do this.
HTML 3+ CLEAR="clear" - places the header after an image - can be LEFT, RIGHT, or ALL specifying which margin should be clear.

<H1>

- a level 1 heading.

<H2>

- a level 2 heading.

<H3>

- a level 3 heading.

<H4>

- a level 4 heading.
<H5>
- a level 5 heading.
<H6>
- a level 6 heading.

Italic

<I> text </I>

Text that should be shown in italics.

Keyboard

<KBD> text </KBD>

Renders text in a fixed width font dependent on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.
Listing

<LISTING> text </LISTING>

Renders text showing a program listing. It should no longer be used because of its poor handling of nested tags
Paragraph Text

<P> text </P>
HTML 3.2 + ALIGN="align" - can be LEFT, RIGHT, or CENTER to place elements on the screen.
HTML 3 <P NOWRAP> - stops the browser from breaking lines of text to fit to specific widths. Use BR to do this.

Starts a new paragraph.
</P> is optional if the tag is only to insert space between two paragraphs (the same as using two BR tags),
It MUST be used with attributes e.g. ALIGN="center" which apply to whole paragraphs.

Plain Text

<PLAINTEXT> text </PLAINTEXT>

Defines text to be shown in a fixed width font with the line breaks and other whitespace specified by the page author.
Multiple spaces will be displayed as multiple spaces.
HTML tags are not rendered inside this tag.
Preformatted Text

<PRE> text </PRE>

Defines text that should be shown in a fixed width font with the line breaks and other whitespace specified by the page author.
Multiple spaces will be displayed as multiple spaces.
Typically used for several lines of program code or for poetry.
WIDTH="width" - specifies the maximum number of characters per line.
Sample

<SAMP> text </SAMP>

Renders text in a fixed width font dependent on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.
Small Text
html3.2+
n2+ ie2+
<SMALL> text </SMALL>

Renders text in a smaller than nornal style.
Strikethrough

<STRIKE> text </STRIKE>

Renders text with a horizontal line through it.

Strong

<STRONG> text </STRONG>

Strongly emphasized text, most browsers will display it in boldface.
Subscript
ie3+
html3.2+n2+
<SUB> text </SUB>
Renders text smaller and lower on the line than usual.
Superscript
ie3+
html3.2+n2+
<SUP> text </SUP>

Renders text smaller and higher on the line than usual.
Teletype

<TT> text </TT>

Renders text in a fixed width font dependent on browser presets.
Most browsers use the same font for the KBD, SAMP, TT and CODE tags.
Underlined

<U> text </U>

Renders text with a line underneath it.

Variable

<VAR> text </VAR>

Renders text often in italics depending on browser presets and should be used when representing a variable.
Tag List
<!--
&tag;
A
ADDRESS
APPLET
AREA
B
BASE
BASEFONT
BGSOUND
BIG
BLINK
BLOCKQUOTE
BODY
BR
CAPTION
CENTER
CITE
CODE
COL
COLGROUP
DD
DFN
DIR
DL
DT
EM
EMBED
FONT
FORM
FRAME
FRAMESET
Hn
HEAD
HR
HTML
I
IFRAME
IMG
INPUT TYPE=CHECKBOX
INPUT TYPE=FILE
INPUT TYPE=HIDDEN
INPUT TYPE=IMAGE
INPUT TYPE=PASSWORD
INPUT TYPE=RADIO
INPUT TYPE=RANGE
INPUT TYPE=RESET
INPUT TYPE=SCRIBBLE
INPUT TYPE=SELECT
INPUT TYPE=SUBMIT
INPUT TYPE=TEXT
ISINDEX
KBD
LI
LINK
LISTING
MAP
MARQUEE
MENU
META
MULTICOL
NOBR
NOFRAMES
OBJECT
OL
P
PARAM
PLAINTEXT
PRE
SAMP
SCRIPT
SMALL
SPACER
STRIKE
STRONG
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TITLE
TR
TT
U
UL
VAR
WBR
XMP