Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The METAelement conveys information or properties about the document to the server and the client. It does not get displayed when the document is accessed. This element does not require a closing tag.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties, Methods and Collections for the HTML Elements in Internet Explorer Mobile.

This element can be used within a web page with attributes.

This element can be used within scripts where it will have properties, eventsand methods.

Attributes

The following table shows items that Internet Explorer Mobile supports.

Attribute Value Description

CONTENT

String

Specifies the meta information or value to be associated with NAMEor HTTP-EQUIVattributes.

CHARSET

String

 

HTTP-EQUIV

 

Specifies the name used to gather information for HTTP response message headers. If required, the CONTENTattribute specifies the value.

Primarily used for server information, Internet Explorer Mobile recognizes REFRESH, NOSCRIPTand CLEARTYPE.

REFRESHspecifies the number of seconds before the document is refreshed. URLis optional and contains the URL of the document to be loaded on refresh.

CLEARTYPEspecifies that cleartype is to be turned on or off.

Examples:

<META HTTP-EQUIV="REFRESH" CONTENT="2">causes the document to be refreshed every two seconds.

<META HTTP-EQUIV="REFRESH" CONTENT="2;URL=http://www.tailspintoys.com/">causes the specified URLto be loaded after two seconds.

<META HTTP-EQUIV="NOSCRIPT">causes scripts to be disabled on that page.

<META HTTP-EQIV="cleartype" CONTENT="ON">causes cleartype to be turned on.

 

REFRESH

Content = "{seconds} ; {URL}"

 

CLEARTYPE

Content = "ON | OFF"

 

CONTENT-TYPE

the charset parameter is processed -- probably all we need.

NAME

String

Specifies the property name. This can take any value and there is no specification of legal values. The CONTENTattribute specifies the property's value.

Internet Explorer Mobile recognizes the. use of MobileOptimized. If you have optimized your content for mobile devices, the use of this value will override the automatic resizing process. The CONTENTattribute contains the device screen width.

Example:

<META NAME="MobileOptimized" CONTENT="240">causes the browser not to automatically resizing the document.

Scripting Properties

This element has no scripting properties.

Scripting Events

This element has no associated events.

Scripting Methods

This property has no associated methods.

Requirements

Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also