DOM Interfaces
HTMLMetaElement
Represents document metadata with name, content and pragma-related properties. Changing a metadata property after load does not necessarily reproduce effects that occur during initial parsing. Example result: A guide.
Formal Syntax & Structure
html syntaxhtml
const element = document.getElementById('demo'); // HTMLMetaElementReturn Value
HTMLMetaElement
An existing HTML DOM object associated with the meta element in this example; this interface is a type, not a function return contract.
Working Example
Example Snippethtml
<meta id="demo" name="description" content="A guide"><p> Result: <output id="result"></output></p><script> const e = document.getElementById('demo'); const result = value => { document.getElementById("result").textContent = String(value); }; result(e.content);</script>