META HTML Element

Send Feedback

The META element 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.

Attributes

Attribute Value Description
CONTENT String Specifies the meta information or value to be associated with NAME or HTTP-EQUIV attributes.
HTTP-EQUIV String Specifies the name used to gather information for HTTP response message headers. If required, the CONTENT attribute specifies the value.

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

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

CLEARTYPE specifies 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=https://www.tailspintoys.com/"> causes the specified URL to 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.

NAME String Specifies the property name. This can take any value and there is no specification of legal values. The CONTENT attribute 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 CONTENT attribute contains the device screen width.

Example:

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

Requirements

Pocket PC: Pocket PC 2003 and later
Smartphone: Smartphone 2003 and later
OS Versions: Windows CE 4.0 and later

See Also

Internet Explorer Mobile HTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.