home    egovision web resource centre    

HTML Tags Encyclopaedia - Tags G-L

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.

Floating Frame
 ie3+html4+ NOT NETSCAPE
<IFRAME attributes> content <IFRAME>

Inserts a frame into your document like an image. This frame can contain another complete html document.
ALIGN="align" - sets the alignment of the frame or of the surrounding text.
FRAMEBORDER="number" - renders a 3-D edge border around the frame.
HEIGHT="height" - controls the height (in pixels) of the floating frame.
WIDTH="width" - controls the width of the floating frame, in pixels.
MARGINHEIGHT="height" - controls the margin height for the frame, in pixels.
MARGINWIDTH="width" - controls the margin width for the frame, in pixels.
NAME="name" - provides a target name for the frame.
SCROLLING=yes or no - toggles scrollbars on and off.
SRC=src - defines the source file for the frame.

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.

Form Input Check Box

<INPUT TYPE=CHECKBOX NAME=name VALUE=value>
<INPUT TYPE=CHECKBOX NAME=name VALUE=value CHECKED>

The checkbox type input tag specifies a boolean choice within the form that contains it.
If more than one checkbox appears in the form with the same name the user can select none, one or several of the choices.
The NAME attribute is a required field and is used to identify the data for the field.
The VALUE attribute specifies the value that is returned if the box is checked.
If the CHECKED attribute is specified, the box is initially selected.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input File
 HTML: HTML3.2 ONLY
<INPUT TYPE=FILE NAME=name ACCEPT=mime type list>

The file type input tag allows the user to attach one or more files to the form for submission.
The NAME attribute is a required field and is used to identify the data for the field.
The ACCEPT attribute is a list of mime types that will be accepted. (e.g. "image/*" or "image/gif, image/jpeg").
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Hidden

<INPUT TYPE=HIDDEN NAME=name VALUE=value>

The hidden type input tag specifies a hard coded name-value pair within the form.
This field is not displayed to the user. Both NAME and VALUE are required attributes.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Image

<INPUT TYPE=IMAGE NAME=name SRC="URL">
(HTML 3.2 Only) <INPUT TYPE=IMAGE NAME=name SRC="URL" ALIGN="alignment">

The image type input tag specifies an image to be presented to the user.
As soon as the user clicks on the image, the form is submitted with the selected x y coordinates of the spot on the image and the data for the other form fields.
The NAME attribute is a required field and is used to identify the data for the field.
The SRC and ALIGN attributes are the same as in the Inline Image tag.
(HTML 3.2 Only) The ALIGN attribute is used for image alignment TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
(HTML 3.0 Only)The 3.0 specification added two new attributes: DISABLED, and ERROR.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
Form Input Password

<INPUT TYPE=PASSWORD NAME=name>
<INPUT TYPE=PASSWORD NAME=name MAXLENGTH=length>
<INPUT TYPE=PASSWORD NAME=name SIZE=size>
<INPUT TYPE=PASSWORD NAME=name VALUE=value>

The password type input tag specifies a single line text entry field within the form that contains it.
The value entered by the user will be obscured as it is entered.
The NAME attribute is a required field and is used to identify the data for the field.
The MAXLENGTH attribute specifies the number of characters that can be entered into this field.
If MAXLENGTH is not specified then there is no limit on the number of characters entered.
If MAXLENGTH is longer than SIZE then the text field will scroll appropriately.
The SIZE attribute specifies the amount of display space this field should take up.
The default for SIZE will vary by browser. The VALUE attribute specifies the initial value of the field.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Radio Button

<INPUT TYPE=RADIO NAME=name VALUE=value>
<INPUT TYPE=RADIO NAME=name VALUE=value CHECKED>

The radio button type input tag allows a choice among a number of options.
Normally more than one radio button will appear in the form with the same name.
The user can then select only one of the of the choices.
The NAME attribute is a required field and is used to identify the data for the field.
If one of the choices has the CHECKED attribute it will initially be selected.
If none of the choices has the CHECKED attribute then the first one defaults as initially selected.
The VALUE attribute specifies the value that is returned if the box is checked.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Range
 HTML:

<INPUT TYPE=RANGE NAME=name MIN=min MAX=max>
<INPUT TYPE=RANGE NAME=name MIN=min> MAX=max VALUE=value>
The range type input tag allows the user to enter an number restricted to a set range.
The NAME attribute is a required field and is used to identify the data for the field.
The MIN and MAX attributes specify the minimum and maximum values that can be entered.
If either MIN or MAX is a real number then the user can enter real numbers, otherwise only integers can be entered.
The VALUE attribute specifies an initial value and should be in the range specified.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Scribble HTML:

<INPUT TYPE=SCRIBBLE NAME=name SRC=URL VALUE=text>

The scribble type input tag allows the user draw on a predefined image.
The NAME attribute is a required field and is used to identify the data for the field.
The SRC attribute specifies the URL of the image.
The VALUE attribute specifies a text string that is used as an alternate if images or scribbling are not supported by the browser.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Submit

<INPUT TYPE=SUBMIT>
<INPUT TYPE=SUBMIT NAME=name>
<INPUT TYPE=SUBMIT VALUE=value>

The submit type input tag specifies a button. When the user clicks the button, the form is submitted.
The NAME attribute is used to identify the data for the field.
If no NAME attribute is given then this element does not form part of the submitted response.
The VALUE attribute specifies the label for the button.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
Form Input Text

<INPUT TYPE=TEXT NAME=name>
<INPUT TYPE=TEXT NAME=name MAXLENGTH=length>
<INPUT TYPE=TEXT NAME=name SIZE=size>
<INPUT TYPE=TEXT NAME=name VALUE=value>

The text type input tag specifies a single line text entry field within the form that contains it.
The NAME attribute is a required field and is used to identify the data for the field.
The MAXLENGTH attribute specifies the number of characters that can be entered into this field.
If MAXLENGTH is not specified then there is no limit on the number of characters entered.
If MAXLENGTH is longer than SIZE then the text field will scroll appropriately.
The SIZE attribute specifies the amount of display space this field should take up.
The default for SIZE will vary by browser. The VALUE attribute specifies the initial value of the field.
(HTML 3.0 Only)The 3.0 specification adds three new attributes: DISABLED, ERROR, and ALIGN.
The DISABLED attribute shows the field but will not allow the user to modify it.
The ERROR attribute is used to supply an error message for the field.
The ALIGN attribute is used to position the field and can be one of TOP, BOTTOM, MIDDLE, LEFT or RIGHT.
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.
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.
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.

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.

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