HTML | DOM Meta Object Last Updated : 24 Nov, 2021 Comments Improve Suggest changes Like Article Like Report The DOM Meta Object is used to represent the HTML <meta> element. The Meta element is accessed by getElementById().Properties: Name attribute: This attribute is used to define the name of property.http-equiv attribute: This attribute is used to get http response message header.Scheme attribute: This attribute is used to specify a scheme to interpret the property’s value.Content attribute: This attribute is used to specify properties value. Syntax: document.getElementById("ID"); Where “id” is the ID assigned to the “meta” tag.Example-1: html <!DOCTYPE html> <html> <head> <meta name="keywords" content="Meta Tags, Metadata" /> </head> <body> <center> <h1>GeeksForGeeks</h1> <h2>DOM Meta Object</h2> <p>Hello GeeksforGeeks!</p> <button onclick="myGeeks()"> Submit</button> <p id="sudo"></p> <script> function myGeeks() { var x = document.getElementsByTagName( "META")[0].content; document.getElementById( "sudo").innerHTML = x; } </script> </center> </body> </html> Output:Before Clicking On Button: After Clicking On Button: Example-2: Meta Object can be created by using thedocument.createElement Method. html <!DOCTYPE html> <html> <head> <title>DOM Meta Object </title> </head> <body> <center> <h1>GeeksForGeeks</h1> <h2>DOM Meta Object</h2> <p>Hello GeeksforGeeks!</p> <button onclick="myGeeks()"> Submit</button> <p id="sudo"></p> <script> function myGeeks() { // meta tag created var g = document.createElement("META"); g.setAttribute("name", "keywords"); g.setAttribute("content", "Meta Tags, Meta data"); document.head.appendChild(g); document.getElementById("sudo").innerHTML = "HTML DOM Meta Object created."; } </script> </body> </html> Output:Before Clicking On Button : After Clicking On Button: Supported Browsers: The browser supported by DOM Meta Object are listed below: Google ChromeInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Style transitionTimingFunction property The DOM Style transitionTimingFunction property allows a transition effect to change speed over its duration. Transition effect provides a way to control animation speed when changing properties. Syntax: To set the property:object.style.transitionTimingFunction = "ease|linear|ease-in| ease-out|ease- 2 min read HTML DOM Style textAlign Property The HTML DOM style textAlign property is similar to the text-align property in the CSS. It sets the alignment for the inner content of a block element using HTML DOM. SyntaxWe can use textAlign in two different ways, one to set the alignment, and the other to get the current alignment. Get the valu 3 min read HTML | DOM Style visibility Property The Style visibility property in HTML DOM used to set the visibility for an element. It is used to hide or show the element. It returns the visibility property that is given to an element. Syntax: It returns the visibility property.object.style.visibilityIt is used to set the visibility property. ob 2 min read HTML DOM Style transitionProperty Property The Style transitionProperty property in HTML DOM used to set the name of the CSS property for the transition effect. It can occur when a user hover over an element. It returns the transitionProperty property of an element. Syntax: It returns the transitionProperty property. object.style.transitionP 2 min read HTML | DOM Style position Property The position property sets or returns the type of positioning method used by the element. It may be static, relative, absolute or fixed. Syntax: Return position syntax: object.style.position Set position syntax: object.style.position = "static | absolute | fixed | relative | sticky | initial | inher 4 min read HTML | DOM Style textDecorationLine Property The Style textDecorationLine property in HTML DOM used to set the decoration for a line. We can specify any number of decorations for a line. It returns the decoration that is given to the text. Syntax: It returns the textDecorationLine property. object.style.textDecorationLineIt is used to set the 2 min read HTML | DOM Style borderImageSlice Property The borderImageSlice property is used to specify the inward offsets of the image border. The user can specify the value of this property in terms of percentage, number or global values. Syntax: object.style.borderImageSlice = "number|%|fill|initial|inherit" Return Values: It returns a string value, 3 min read HTML | DOM Style clear Property The DOM Style clear property in HTML is used to set or get the position of the specific element relative to floating objects. Syntax To get clear property:object.style.clearTo set clear property:object.style.clear = "none|left|right|both|initial|inherit" Properties Value: valuedescriptionleftDoes no 2 min read HTML DOM Table Object The HTML DOM Table object represents an HTML <table> element in the Document Object Model (DOM). It provides properties and methods to manipulate tables, such as adding or deleting rows and columns, accessing individual cells, or modifying the table's structure dynamically.Syntax:To access tab 3 min read HTML | DOM MouseEvent offsetX Property The MouseEvent offsetX property is a read-only property which is used for returning the x-coordinate of the mouse pointer, relative to the target element. Syntax : event.offsetX Return Value: It returns a number which represents the horizontal coordinate of the mouse pointer, in pixels. Below progra 1 min read Like