HTML | DOM Figcaption Object Last Updated : 31 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The Figcaption Object in HTML DOM is used to represent the HTML <figcaption> element. The figcaption element is accessed by getElementById(). Syntax: document.getElementById("ID"); Where ID represent the element id. Example 1: html <!DOCTYPE html> <html> <head> <title> HTML DOM figcaption Object </title> <style> body { text-align:center; } h1 { color:green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM Figcaption Object</h2> <figure> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/geeks-25.png" alt="gfglogo" style="width:50%"> <figcaption id = "GFG"> GeeksforGeeks Logo </figcaption> </figure> <button onclick = "Geeks()"> Submit </button> <script> function Geeks() { var gfg = document.getElementById("GFG"); gfg.style.color = "green"; gfg.style.fontSize = "20px"; } </script> </body> </html> Output: Before Click on the button: After Click on the Button: Example 2: Figcaption Object can be created by using the document.createElement Method. html <!DOCTYPE html> <html> <head> <title> HTML DOM figcaption Object </title> <style> body { text-align:center; } h1 { color:green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>DOM Figcaption Object</h2> <figure> <img src = "https://media.geeksforgeeks.org/wp-content/uploads/geeks-25.png" alt = "gfglogo" style = "width:50%"> </figure> <button onclick = "Geeks()"> Submit </button> <!-- script to add figcaption object --> <script> function Geeks() { var x = document.createElement("FIGCAPTION"); var y = document.createTextNode("GeeksForGeeks Logo") x.appendChild(y); x.style.color = "green"; document.body.appendChild(x); } </script> </body> </html> Before Click on the Button: After Click on the Button: Supported Browsers: The browser supported by DOM Figcaption Object are listed below: Google Chrome Internet Explorer Firefox Opera Safari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML DOM Figure Object The DOM Figure Object is used to represent the HTML <figure> element. The figure element is accessed by getElementById(). Syntax: document.getElementById("ID"); Where âidâ is the ID assigned to the âfigureâ tag. Example 1: In this example, we will use DOM Figure Object. HTML <!DOCTYPE html 2 min read HTML DOM Section Object The Section Object in HTML DOM is used to represent the HTML <section> element. The section element can be accessed by using the getElementById() method. Syntax: document.getElementById("id") Where id is assigned to the <section> tag. Example 1: In this example, we will use DOM Section O 1 min read HTML DOM Nav Object The DOM nav object is used to represent the HTML <nav> element. The<nav> element is accessed by getElementById(). Syntax: document.getElementById("id") Where id is assigned to the <nav> tag. Note: The Nav Object is not supported by Internet Explorer 8 and earlier versions. Example 1 min read HTML DOM insertAdjacentText() Method The insertAdjacentText() inserts a provided text at one of the following positions. afterbegin:afterend:beforebegin:beforeend: Syntax: node.insertAdjacentText(position, text) Parameters: This method requires 2 parameters. position: A position relative to the element. The legal values are:afterbegin: 1 min read HTML DOM Style borderImage Property The DOM Style borderImage Property in HTML is a shorthand property used for setting the borderImageSource, borderImageSlice, borderImageWidth,borderImageOutset, and borderImageRepeat properties. Syntax: It is used to return the borderImage property. object.style.borderImageIt is used to set the bord 2 min read HTML DOM stopPropagation() Event Method The stopPropagation() method is used to stop the propagation of event calling. That is a parent event is called we can stop the propagation of calling its children by using the stopPropagation() method and vice-versa. Syntax: event.stopPropagation() Return Value: It does not return any value. Exampl 2 min read HTML DOM Emphasized Object The HTML DOM Emphasized object represents the <em> element, used to emphasize text, typically rendering it in italics. It can be accessed and manipulated through JavaScript to alter its content or styling.Syntax:document.getElementById("ID");Example: Clicking the "Submit" button changes the em 1 min read HTML DOM type Event Property The type event property in HTML DOM is used to return the type of the triggered event. It returns a string that represents the type of the event. The events can be keyboard events or mouse events. Syntax: event.type Return Value: It returns a string that represents the type of event. Example: In thi 1 min read HTML DOM timeStamp Event Property The timeStamp property in the HTML DOM refers to a read-only property that returns the time (in milliseconds) at which an event was created. The value is measured relative to the UNIX epoch (January 1, 1970, 00:00:00 UTC). This property is commonly used to determine the timing of events and can be u 1 min read HTML | DOM Details Object The DOM Details Object is used to represent the HTML <details> element. The Details element is accessed by getElementById(). Properties: open: The details tag has an attribute called 'open' which is used to display the hidden information by default. Syntax: document.getElementById("ID"); Where 2 min read Like