Skip to content

Category Archives: HTML

The DOM cloneNode() Method is used to copy or clone a node on which cloneNode() method is called. For example, a list item can be… Read More
The onunload event attribute works when the document is being unloaded i.e. it occurs when the browser has been closed. It is mostly used when… Read More
The exitFullscreen() method requests the element which is currently in a full-screen mode to be taken out of full-screen mode. If element is not in… Read More
The DOM children property is used to return HTMLcollection of all the child elements of the specified element. The elements in the collection can be… Read More
The button object in HTML is used to represent a <button> element. The getElementById() method is used to get the button object.Creating button object: The… Read More
The DOM scrollLeft property is used to return or set the number of pixels an element i.e. scrolled horizontally. If the content of the element… Read More
The DOM scrollHeight property is used to return the height of an element. This property includes padding and also the content that is not visible… Read More
The DOM lastElementChild property is used to return the last child element of the specified element or null if there is no last element. It… Read More
The DOM hasAttribute() method is a boolean function which returns either true or false but not both. This method returns a true value if the… Read More
The contains() method is used to find whether the specified node is a descendant of the given node. This descendant can be a child, grandchild,… Read More
The DOM offsetWidth property is used to returns the layout width of an element as an integer. It is measured in pixels. It includes width,… Read More
The DOM Style borderRadius Property is used to set or return the four different borderRadius property such as borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius of an element. It… Read More
In this article, we will learn about the HTML DOM getAttribute() method, along with understanding their implementation through the example. HTML DOM getAttribute() method is… Read More
The DOM parentElement property is used to returns the parent element of a particular child element. It is a read-only property. The parentElement and parentNode… Read More
The previousSibling property is used to return the previous node of the specified node as Node object or null if the specified node is the… Read More