Dom : document object model. It is used to add dynamic content to the webpages. Update the content, Structure and style
Using DOM methods and properties, we can
Methods :
Document.Write
Document.Writeln
Document.getElementById: return specified element
Document.getElementByName: returns a list of elements with the specified name. In the form of an array
Document.getElementsByClassName: return list of element specified same class .all elements with the same class name
Document.getElementsByTagName: return a list of elements with the same tag.
Document.querySelector(".classname, #idname, tagname") : return staring element only
Document.querySelectorAll(".classname, #idname, tagname") : return a list of all elements.
Return all object matches the CSS style selector.