YouTip LogoYouTip

Prop Meta Content

# Meta content Attribute [![Image 8: Meta Object Reference](#) Meta Object](#) * * * ## Definition and Usage The content property sets or returns the value of the content attribute of a meta element. The content property specifies the content of the meta information. **Note:** The available values for this property depend on the values of the (#) and (#) attributes. ## Syntax Setting the content property: linkObject.content="_text_" Returning the content property: linkObject.content * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The content property is supported in all major browsers. * * * ## Example ## Example Display the content value of all meta attributes: function displayResult(){ var x=document.getElementsByTagName("meta"); var txt=""; for (var i=0;i<x.length;i++){ txt=txt + "Content of "+(i+1)+". meta tag: "+x.content+"
"; } document.getElementById("result").innerHTML=txt; }

[Try it yourself Β»](#) * * Meta Object](#)
← Prop Select TypeProp Link Media β†’