Return the value of the content attribute of all meta elements:
The result of txt will be:
The content property sets or returns the value of the content attribute of a meta element.
The content attribute specifies the content of the meta information.
Note: The available values of this property depends on the value of the name and the httpEquiv properties.
The content property is supported in all major browsers.
Return the content property:
Set the content property:
Value | Description |
---|---|
text | The content of the meta information |
Type | Description |
---|---|
String | The value of the content attribute of the meta element |
Change the value of the content attribute of the third meta element (index 2) in head: