
Dom(Document Object model/Methods )in JavaScript
What is DOM(Document Object model)? We are discussing the methods ,without methods our dom will not work. Tree representation of Html elements, Suraj kumar Jha, he is mentor in chaicode, discussed , what do I think? It is a API(Application programming interface) for communicating with Html documents. Dom is client-side programming language, it creates a tree structure of html elements. Selecting Document Elements In client side javascript , we often need to modify one or more elements within our website. We have document object, we need to select the particular element from the web page, we select the elements with css selectors. querySelector() mdn states that the query selector returns the first element which matches within the css selector. syntax: querySelectorAll() returns the node list which is list of documents within page.
Continue reading on Dev.to JavaScript
Opens in a new tab


