home    egovision web resource centre    

HTML Tags Encyclopaedia G-L by Name

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.

Head

<HEAD> header-section </HEAD>

Introduces markup that describes an HTML document and its contents.
Use TITLE and META tags in the head section.
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.

HTML

<HTML> whole-document </HTML>

Defines an HTML document.
Should be the first tag in the entire document, and the </HTML> tag should be the last.
Italic

<I> text </I>

Text that should be shown in italics.

Inline Image

<IMG SRC="URL">

Displays an image referred to by a URL and must contain at least an SRC attribute.
SRC="URL" - calls the image source, usually a GIF, PNG or JPEG file.
ALT="text" - text to be displayed by a browser that does not display images.
ISMAP="url" - sets the image as a server side image map.
ALIGN="align" - should be one of TOP, MIDDLE, or BOTTOM.
html3.2+- align can be LEFT or RIGHT
n4+ - align can be LEFT, RIGHT, TOP, TEXTTOP, MIDDLE, ABSMIDDLE, BASELINE, BOTTOM, or ABSBOTTOM.
html3.2+ BORDER="n" - sets the image border thickness in pixels.
html3.2+ HEIGHT="height" - specifies the height of the image in pixels or en units.
html3.2+ HSPACE="n" - leaves a space n pixels wide either side of the image.
html3.2+ WIDTH="width" This specifies the width of the image in pixels or en units.
html3.2+ VSPACE="n" - leaves a space n pixels wide above and below the image.
html3+ UNITS=units - either PIXELS or EN - defines whether sizes are specified in pixels or en units.
html3.2+ USEMAP="url" overrides ISMAP attribute and sets the image as a client side image map.
ie4+ CONTROLS - displays playing controls for e.g. avi or wav files.
ie4+ DYNSRC="url" -specifies an AVI or a WRL (VRML file).
ie4+ START="FILEOPEN or MOUSEOVER" - specifies when the browser should play the DYNSRC file.
START=FILEOPEN - starts playing the resource when it is opened.
START=MOUSEOVER - starts playing the resource when the user places the mouse over it.
ie4+LOOP="n" - played the resource n times.
ie4+LOOP="INFINITE" - is annoying.
n4+ LOWSRC="url" - allows a smaller sized file (e.g. black and white version) of a large image to be displayed while the larger one is loading.

Is Index

<ISINDEX>
HTML 3.0 <ISINDEX HREF="URL">
 HTML <ISINDEX PROMPT="prompt">

Valid in a HEAD section, declares that the current HTML document is a searchable index.
The user will be prompted for keywords to search for.
A new URL will be formed by taking the base address of the current document and adding a '?' character to it, followed by the keywords separated by '+' characters.
The URL attribute overrides the base address.
The prompt attribute changes the prompt from the default one supplied by the browser.
Java Applet
html 3.2+n2+ ie4+
<APPLET attributes> content </APPLET>

Runs a Java applet in a page.
Content consists of optional PARAM tags, ordinary text and markup to be displayed by browsers that cannot run Java applets, and a TEXTFLOW tag if no ordinary text and markup is included.
The attributes of the APPLET tag are:
CODEBASE="base" - sets the base directory for pathing to applets..
CODE="code" - URL of the applet.
NAME=" name" - the name of the applet.
ALIGN="align" - either LEFT, RIGHT, TOP, MIDDLE, or BOTTOM.
ALT="text" - alternative text to be displayed by browsers that do not support applets.
HEIGHT="height" - height of the applet in pixels.
WIDTH="width" - width of the applet in pixels.
HSPACE="n" - leaves a space n pixels wide either side of the applet.
VSPACE="n" - leaves a space n pixels wide above and below the applet.
DOWNLOAD="n" - assign numbers to applets to determine the order in which they are downloaded.

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.
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.

Link

<LINK REL=relationship HREF="URL">
<LINK REV=relationship HREF="URL">
 HTML <LINK REV=relationship HREF="URL" TITLE="title">

Used in the HEAD section of a document.
Has all the same attributes as the anchor tag.
REL - specifies the relationship between this document and the link.
REV - specifies a reverse relationship while the HREF attribute specifies the URL of the link.

Relationships:
REL=Home - points to home or top page in hierarchy.
REL=ToC - points to a table of contents.
REL=Index - points to an index for the current page.
REL=Glossary - points to a glossary.
REL=Copyright - points to a page with copyright information for the current page.
REL=Up - points to the pages parent in the hierarchy.
REL=Next - points to the next page in a series of pages.
REL=Previous - points to the previous page in a series of pages.
REL=Help - points to information that may further explain the page to the user.
REL=Bookmark - points to a particular location within a long document.
REL=StyleSheet Link points to a style sheet that will be used to render the current document.
TITLE - used to label the bookmark.

List Item

<LI> content </LI>

Defines an entry in a list either ordered (OL) unordered (UL) menu(MENU) or directory(DIR)
The list item tag defines one entry in an ordered, unordered, menu, or directory list.
Other tags may be embedded in list items.
html3+ SRC="URL" - specifies an image as the bullet for the item
html3+ DINGBAT="entity" - specifies an iconic entity as the bullet for the item
html3+ SKIP="number" - used with ordered lists to skip forward in the number count
html3.2+ TYPE="type" - changes the bullet to numbers or bullets.
html3.2+ VALUE="number" - changes the number of the item.

Listing

<LISTING> text </LISTING>

Renders text showing a program listing. It should no longer be used because of its poor handling of nested tags
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