home    egovision web resource centre    

HTML Tags Encyclopaedia - Primary Tags
Base

<BASE HREF="base-address">
N2+ ie3+ <BASE TARGET="target">

Valid only in the HEAD section, defines the base address of an HTML document.
This is used to set the full address of relative URL's that appear in the document.
Useful when moving an HTML document to another site without moving all the images and related documents as well, the base URL can be set to the original direectory.
The "target" is the target for all links unless specified explicitly.
Predefined target names are:
_blank - causes the link to be loaded into a new blank window.
_self - causes the link to be loaded into the same window the link was in.
_parent - causes the link to be loaded into the parent of this document.
_top - causes the link to be loaded into the full body of this window.
Body

<BODY> whole-document-body </BODY>

The body tag introduces the body of the document and should be used after the head section and contain the remainder of the document.
 HTML BACKGROUND="image URL" - specifies an image file to use as the background for the page.
 HTML BGCOLOR="#rrggbb" - sets the colour to be used for the background
 HTML TEXT="#rrggbb" - sets the colour to be used for the text
 HTML LINK="#rrggbb" - sets the colour to be used for links
 HTML ALINK="#rrggbb" - sets the colour to be used for active links
 HTML VLINK="#rrggbb" - sets the colour to be used for visited links
ie4+ LEFTMARGIN="number" - sets the margin at the left of the document, in pixels
ie4+ TOPMARGIN="number" - sets the margin at the top of the document, in pixels
ie4+ BGPROPERTIES="FIXED" - causes the BACKGROUND image to remain fixed as the document scrolls

Division
N2+
 HTML ie4+
<DIV ALIGN=align>
<DIV =clear>
<DIV =lang>
HTML 3.0 <DIV CLASS=class>
HTML 3.0 <DIV CLASS=NOWRAP>

Used to divide a document up into different sections, such as chapters, sections, abstract, and appendix using the CLASS attribute.
LANG - indicates the ISO standard language using standard abbreviation.
ALIGN attribute (LEFT, RIGHT, or CENTER).
NOWRAP - prevents the browser from wrapping content except where <BR>'s are used.
Head

<HEAD> header-section </HEAD>

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

Meta

<META HTTP-EQUIV="field name" CONTENT="field value">
<META HTTP-EQUIV="field name" NAME="field name" CONTENT="field value">

Only valid in a HEAD section.
Declares HTTP meta name/value pairs that are associated with the HTML document to servers.
These are used to extend the HTTP header information returned by the HTTP server.
The support of the meta information is HTTP server specific. If a name attribute is not specified the HTTP-EQUIV attribute is used as the name.
NAME="description" - provides content for search engines to list information about the document.
NAME="keywords" - provides keywords for search engines to associate to your document for indexing purposes.

Can also be used to trigger client side behaviour:
IE4+N4+ HTTP-EQUIV="REFRESH" CONTENT="n".
The browser will reload the page every "n" seconds.
Add URL="page" to this and the browser will load the page specified in it after the "n" seconds.

N3+ META HTTP-EQUIV="Content-Type" CONTENT="text/html" charset="charset"
Allows different international character sets to be selected.
Title

<TITLE> title-text </TITLE>

Only valid in a HEAD section, defines the title of an HTML document.
Document titles are used in the browser title bar and in bookmark lists.
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