MAP
HTML Element Reference

MAP

Description

Specifies a collection of hot spots for a client-side image map

Syntax

<MAP
CLASS=classname
ID=value
LANG=language
NAME=name
STYLE=css1-properties
TITLE=text
event = script
>

ParameterDescription
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
NAME=name Specifies the name of the window.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event.
event Can be one or more of these events:
onclick ondblclick
ondragstart onhelp
onkeydown onkeypress
onkeyup onmousedown
onmousemove onmouseout
onmouseover onmouseup
onselectstart

Remarks

Both the start and end tags are required.

This example shows a client-side image map having two hot spots and an area that is not hot. These hot spots can be applied to an image by using the name "map1" with the USEMAP= attribute of the IMG element.

Scripting Object

MAP


MARQUEE

Description

The MARQUEE tag enables you to create a scrolling text marquee.

Syntax

<MARQUEE
BEHAVIOR=ALTERNATE | SCROLL | SLIDE
BGCOLOR=color
CLASS=classname
DATAFLD=colname
DATAFORMATAS=HTML | TEXT
DATASRC=#ID
DIRECTION=DOWN | LEFT | RIGHT | UP
HEIGHT=n
HSPACE=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
LOOP=n
SCROLLAMOUNT=n
SCROLLDELAY=milliseconds
STYLE=css1-properties
TITLE=text
TRUESPEED
VSPACE=n
WIDTH=n
event = script
>

ParameterDescription
BEHAVIOR=ALTERNATE | SCROLL | SLIDE Specifies how the text scrolls in the marquee.
Alternate The marquee text alternates left and right.
Scroll The marquee text scrolls in the direction specified in the DIRECTION= attribute. The text scrolls off the end and starts over.
Slide The marquee text scrolls in the direction specified in the DIRECTION= attribute and stops when it reaches the end.
BGCOLOR=color Sets the background color behind the element. For a complete list of colors, look at the Internet Explorer color table.
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
DATAFLD=colname The column name from the data source object that supplies the bound data.
DATAFORMATAS=HTML | TEXT Indicates whether bound data is plain text or HTML.
DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element.
DIRECTION=DOWN | LEFT | RIGHT | UP Specifies which direction the text should scroll.
HEIGHT=n Specifies the HEIGHT of the MARQUEE in pixels or as a percentage of the screen height.
HSPACE=n Along with VSPACE, specifies margins for the element.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.
LOOP=n Specifies how many times the marquee text will loop.
SCROLLAMOUNT=n Specifies the number of pixels the text scrolls between each subsequent drawing of the MARQUEE .
SCROLLDELAY=milliseconds Specifies the speed the MARQUEE scroll in milliseconds.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event.
TRUESPEED When present, this attribute indicates that the exact scroll delay value specified is used to move the marquee text. Without this attribute, all scroll delay values of 59 or less are rounded to 60ms.
VSPACE=n Along with HSPACE, specifies margins for the element in pixels.
WIDTH=n Returns the calculated width of the marquee in window coordinates. In HTML, this attribute may be initially set in pixels or percentages.
event Can be one or more of these events:
onafterupdate onblur
onbounce onclick
ondblclick ondragstart
onfinish onfocus
onhelp onkeydown
onkeypress onkeyup
onmousedown onmousemove
onmouseout onmouseover
onmouseup onresize
onrowenter onrowexit
onselectstart onstart

Remarks

The start tag is required, and the end tag is optional.

Example

<MARQUEE DIRECTION=RIGHT BEHAVIOR=SCROLL SCROLLAMOUNT=10 SCROLLDELAY=200>
This is a scrolling marquee.
</MARQUEE>

Scripting Object

MARQUEE


MENU

Description

Specifies that the following block consists of individual items that begin with the LI element.

Syntax

<MENU
CLASS=classname
ID=value
LANG=language
STYLE=css1-properties
TITLE=text
event = script
>

ParameterDescription
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event.
event Can be one or more of these events:
onclick ondblclick
ondragstart onhelp
onkeydown onkeypress
onkeyup onmousedown
onmousemove onmouseout
onmouseover onmouseup
onselectstart

Remarks

This element is a block element.

Both the start and end tags are required.

Example

<MENU>
<LI>This is the first item in the menu.
<LI>And this is the second item in the menu.
</MENU>

Scripting Object

MENU


META

Description

Provides information about an HTML document to browsers, search engines, and other applications

Syntax

<META
CONTENT=description
HTTP-EQUIV=response
NAME=text
TITLE=text
URL=url
>

ParameterDescription
CONTENT=description Specifies meta-information to be associated with the given name or HTTP response header.
HTTP-EQUIV=response Used to bind the CONTENT of the element to an HTTP response header. This information is then used based on the application reading the header.
NAME=name Specifies the name of the control, bookmark, or application.
TITLE=text Used to provide advisory information.
URL=url If a URL is specifies, the URL will be loaded after the specified time has elapsed.

Remarks

This element may only be used within the HEAD tag.

The start tag is required, and the end tag is optional.

The value of the CONTENT= attribute depends on the HTTP-EQUIV= attribute. The following lists some of these values.
HTTP-EQUIV CONTENT
REFRESH delay[;url]

The delay is the number of seconds that the browser waits before reloading a document. The optional url specifies the document to reload. If no url is given, the browser reloads the current document.

Content-Type text/html; CHARSET=character-set

The character-set specifies one of the character set aliases listed in HTML Character Sets.

Examples

The following example sets the character set for the document.

<META HTTP-EQUIV="Content-Type"
  CONTENT="text/html; CHARSET=Windows-1251">

The following example causes the browser to reload the document every two seconds.

<META HTTP-EQUIV="REFRESH" CONTENT=2>

The following example causes the browser to load the new document, http://www.sample.com/next.htm, after a five second delay.

<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://www.sample.com/next.htm">

The following example causes the server to include the given content in the HTTP response to a GET or HEAD request for the document.

<META HTTP-EQUIV="Expires"
CONTENT="Tue, 04 Dec 1996 21:29:02 GMT">
<meta http-equiv="Keywords" CONTENT="HTML, Reference">
<META HTTP-EQUIV="Reply-to"
content="anybody@microsoft.com">

The HTTP response includes the following header fields.

Expires: Tue, 04 Dec 1996 21:29:02 GMT
Keywords: HTML, Reference
Reply-to: anybody@microsoft.com

Scripting Object

META


NOBR

Description

Renders text without line breaking.

Syntax

<NOBR
ID=value
STYLE=css1-properties
TITLE=text
>

ParameterDescription
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information.

Remarks

The start tag is required, and the end tag is optional.

Example

<NOBR>Here's a line of text I don't want to be broken . . . here's the end of the line.</NOBR>


NOFRAMES

Description

Used to contain HTML for browsers that do not support FRAMESET elements.

Syntax

<NOFRAMES
ID=value
STYLE=css1-properties
TITLE=text
>

ParameterDescription
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information.

Remarks

This element is a block element.

Both the start and end tags are required.

Example

<FRAMESET>
<NOFRAMES>You need Internet Explorer 3.0 to view frames!</NOFRAMES>
</FRAMESET>

See Also

FRAME, FRAMESET


NOSCRIPT

Description

Specifies HTML to be displayed in browsers that do not support scripting.

Syntax

<NOSCRIPT
>

Remarks

This element is a block element.

Both the start and end tags are required.


OBJECT

Description

Inserts an object, such as an image, document, application, or control, into the HTML document. An object can contain any elements ordinarily used within the body of an HTML document, including section headings, paragraphs, lists, forms, and nested objects.

Syntax

<OBJECT
ACCESSKEY=key
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
CLASS=classname
CLASSID=id
CODE=url
CODEBASE=url
CODETYPE=media-type
DATA=url
DATAFLD=colname
DATASRC=#ID
HEIGHT=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NAME=name
STYLE=css1-properties
TABINDEX=n
TITLE=text
TYPE=MIME-type
WIDTH=n
event = script
>

ParameterDescription
ACCESSKEY=key Specifies an accelerator for the element. Pressing alt-key selects this element in the user's browser.
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element.
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
CLASSID=id Identifies the object implementation. For example, the syntax is CLSID:class-identifier for registered ActiveX controls.
CODE=url The name of the file containing the compiled Java class.
CODEBASE=url Specifies a URL referencing where to find the implementation of the object.
CODETYPE=media-type Specifies the Internet media type for code.
DATA=url Specifies a URL referencing the object's data.
DATAFLD=colname The column name from the data source object that supplies the bound data. This attribute can be used on both the OBJECT element and the PARAM elements it contains.
DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element.
HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.
NAME=name Specifies the name of the control, bookmark, or application.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TABINDEX=n Sets the tab order position for the object.
TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event.
TYPE=MIME-type Specifies the MIME type for the associated scripting engine; will override any LANGUAGE value.
WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages.
event Can be one or more of these events:
onafterupdate onbeforeupdate
onblur onclick
ondblclick ondragstart
onfocus onhelp
onkeydown onkeypress
onkeyup onmousedown
onmousemove onmouseout
onmouseover onmouseup
onreadystatechange onresize
onrowenter onrowexit
onselectstart

Remarks

Objects can be submitted in forms. See INPUT.

This element is a block element. Both the start and end tags are required.

Scripting Object

OBJECT

See Also

APPLET, EMBED, PARAM


OL

Description

Draws lines of text as an ordered list.

Syntax

<OL
CLASS=classname
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
START=n
STYLE=css1-properties
TITLE=text
TYPE=1 | a | A | i | I
event = script
>

ParameterDescription
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.
START=n Specifies the starting number for a list.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event.
TYPE=1 | a | A | i | I Changes the style of the list.
1 List items are numbered.
a List items are labeled with lowercase letters.
A List items are labeled with uppercase letters.
i List items are labeled with lowercase roman numerals.
I List items are labeled with uppercase roman numerals.
event Can be one or more of these events:
onclick ondblclick
ondragstart onhelp
onkeydown onkeypress
onkeyup onmousedown
onmousemove onmouseout
onmouseover onmouseup
onselectstart

Remarks

This element is a block element.

Both the start and end tags are required.

Example

<OL>
<LI>This is the first item in the list.
<LI>And this is the second item in the list.
</OL>

<OL START=3>
<LI>This is item number 3.
</OL>

<OL TYPE=A>
<LI>This is item A.
</OL>

Scripting Object

OL

See Also

LI

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.