Share via


META XHTML 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.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM 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, events and methods.

Attributes

Attribute Value PPC SP Description
CONTENT String Yes Yes Specifies the meta information or value to be associated with NAME or HTTP-EQUIV attributes.
CHARSET String Yes Yes  
HTTP-EQUIV   Yes Yes 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.

  REFRESH Yes Yes Content = "{seconds} ; {URL}"
  CLEARTYPE Yes Yes Content = "ON | OFF"
  CONTENT-TYPE Yes Yes the charset parameter is processed -- probably all we need.
NAME String Yes Yes 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.

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

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later

See Also

XHTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.