Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Meta content Property

Meta content Property

Meta Object Reference Meta Object


Definition and Usage

The content property sets or returns the value of the content attribute of the meta element.

The content property specifies the content of the meta information.

Note: The available values of this property depend onname and httpEquiv the value of the property.

Syntax

Set the content property:

linkObject.content="

text

"

Return the content property:

linkObject.content


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the content property


Example

Example

Display the content values of all meta properties:

Runoob Tutorial(runoob.com)

Try it »


Meta Object Reference Meta Object