Conveys hidden information about the document to the server and the client.
![]() |
HTML information
| Closing Tag | forbidden |
|---|---|
| CSS Display |
DOM Information
Inheritance Hierarchy
Members
The meta object has these types of members:
Events
The meta object has these events.
| Event | Description |
|---|---|
| abort |
Fires when the user aborts the download. |
| change |
Fires when the contents of the object or selection have changed. |
| error |
Fires when an error occurs during object loading. |
| input |
Occurs when the text content of an element is changed through the user interface. |
| load |
Fires immediately after the client loads the object. |
| onselect |
Fires when the current selection changes. |
| reset |
Fires when the user resets a form. |
Methods
The meta object has these methods.
| Method | Description |
|---|---|
| dragDrop |
Initiates a drag event. |
| getAttribute |
Retrieves the value of the specified attribute. |
| getAttributeNodeNS |
Gets an attribute object that matches the specified namespace and name. |
| getAttributeNS |
Gets the value of the specified attribute within the specified namespace. |
| getElementsByClassName |
Gets a collection of objects that are based on the value of the class attribute. |
| getElementsByTagNameNS |
Gets a collection of objects that are based on the specified element names within a specified namespace. |
| hasAttributeNS |
Determines whether an attribute that has the specified namespace and name exists. |
| msMatchesSelector |
Determines whether an object matches the specified selector. |
| removeAttribute |
Removes an attribute from an object. |
| removeAttributeNS |
Removes the specified attribute from the object. |
| setAttribute |
Sets the value of the specified attribute. |
| setAttributeNodeNS |
Sets an attribute object as part of the object. |
| setAttributeNS |
Sets the value of the specified attribute within the specified namespace. |
Properties
The meta object has these properties.
| Property | Description |
|---|---|
|
Sets or retrieves the character set used to encode the object. | |
|
Retrieves the height of the object including padding, but not including margin, border, or scroll bar. | |
|
Retrieves the distance between the offsetLeft property and the true left side of the client area. | |
|
Retrieves the distance between the offsetTop property and the true top of the client area. | |
|
Retrieves the width of the object including padding, but not including margin, border, or scroll bar. | |
|
Returns a reference to the constructor of an object. | |
|
Gets or sets meta-information to associate with httpEquiv or name. | |
|
Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. | |
|
Sets or retrieves the value specified in the content attribute of the meta object. | |
|
Retrieves the scrolling height of the object. | |
|
Sets or retrieves the distance between the left edge of the object and the leftmost portion of the content currently visible in the window. | |
|
Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window. | |
|
Retrieves the scrolling width of the object. | |
|
Sets or retrieves the URL property that will be loaded after the specified time has elapsed. |
Standards information
- HTML 4.01 Specification, Section 7.4.4
Remarks
The meta element also embeds document information that some search engines use to index and categorize documents on the World Wide Web.
This element can be used only within the head element.
Examples
This example forces a Windows Store app using JavaScript support for the document.
<!doctype html>
<head>
<title>A Meta Example</title>
<meta http-equiv="x-ua-compatible" content="ie=10">
</head>
<body>
<p>When viewed by Internet Explorer from the Internet zone,
this webpage is displayed in the highest version of
standards mode supported by the browser.</p>
</body>
</html>
For more information about standards mode, see Defining document compatibility.
See also
- Reference
- content
- httpEquiv
- Conceptual
- Defining Document Compatibility
Build date: 11/28/2012
