home    egovision web resource centre    

HTML Tags Encyclopaedia - Format Tags
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.

Center
n1+ HTML 3.2+ie2+
<CENTER> text</CENTER>

Defines text that should be centered.
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.

Horizontal Rule

<HR>

Draws a horizontal line across the screen
There is no </HR> tag.
HTML 3+ SRC= "URL" - sets an image file to be used as the rule
HTML 3.2 + SIZE= "number "- sets the thickness of the line (in pixels).
HTML 3.2 + WIDTH= "number or %" - sets the width of the line (in pixels of percentage of screen width).
HTML 3.2 + ALIGN= "align" - aligns rules that are less than 100% width to either LEFT, RIGHT, or CENTER
HTML 3.2 + NOSHADE - switches off shading and 3D effects used by browsers.
ie3+ COLOR="#rrggbb" - sets the colour for the rule using six-digit rgb codes.

Line Break

<BR>

Breaks the current line of text.
Not needed inside a PRE element.
There is no </BR> tag.
HTML 3.2 + CLEAR="clear" - can be LEFT or RIGHT, or ALL to break until both sides are clear.

No Break
ie2+ n1+
<NOBR> text </NOBR>

Defines a block of text with no line breaks except those explicitly requested with BR or WOBR.
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.
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.
White Space
n3+ NETSCAPE ONLY
<SPACER attributes>

Creates an area of white space within the document.
The attributes for this tag are:
TYPE="type" - one of HORIZONTAL, VERTICAL or BLOCK.
SIZE="pixels" - use when TYPE is HORIZONTAL or VERTICAL to specify the size of the spacer in pixels.
WIDTH="width" - use when TYPE is BLOCK to specify the width of the spacer in pixels.
HEIGHT="height" - use when TYPE is BLOCK to specify the height of the spacer in pixels.
ALIGN="align" - use when spacer is a BLOCK- one of LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, ABSMIDDLE, BASELINE, BOTTOM, or ABSBOTTOM.
Word Break
ie2+n1+

<WBR>

Sets a place where a word or line can be broken within a NOBR block.
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