EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

meta element | meta object

Conveys hidden information about the document to the server and the client.

HTML 4.01 Specification, Section 7.4.4

HTML information

Closing Tagforbidden
CSS Display

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     meta

Members

The meta object has these types of members:

Events

The meta object has these events.

EventDescription
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.

MethodDescription
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.

PropertyDescription

charset

Sets or retrieves the character set used to encode the object.

clientHeight

Retrieves the height of the object including padding, but not including margin, border, or scroll bar.

clientLeft

Retrieves the distance between the offsetLeft property and the true left side of the client area.

clientTop

Retrieves the distance between the offsetTop property and the true top of the client area.

clientWidth

Retrieves the width of the object including padding, but not including margin, border, or scroll bar.

constructor

Returns a reference to the constructor of an object.

content

Gets or sets meta-information to associate with httpEquiv or name.

httpEquiv

Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.

name

Sets or retrieves the value specified in the content attribute of the meta object.

scrollHeight

Retrieves the scrolling height of the object.

scrollLeft

Sets or retrieves the distance between the left edge of the object and the leftmost portion of the content currently visible in the window.

scrollTop

Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window.

scrollWidth

Retrieves the scrolling width of the object.

url

Sets or retrieves the URL property that will be loaded after the specified time has elapsed.

 

Standards information

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

 

 

Anzeigen:
© 2014 Microsoft