Today we'll talk about what is DOM in JavaScript.
DOM is a Document Object Model, and it's an object-oriented representation of the website. It can be modified using Javascript.
With Javascript you can manipulate DOM elements, liked colors, positions, sizes. For selecting the specific elements of the page Javascript provides some functions to make it ease:
*getElementById() - to select an element by the id property,
*getElementByName() - to select an element by the name property,
*getElementsByTagName() - to select all elements of the selected tag,
*getElementsbyClassName() - to select all elements with the certain class name,
*querySelector() - to select elements by CSS selectors.
Javascript also provides other methods to manipulate element, not only select them, like `appendChild()` or `innerHTML()`.
Besides that, with Javascript, we can work with the events and styles.
SUBSCRIBE our channel and let's start!
For written article and code examples VISIT US on:
https://www.blog.duomly.com/10-most-p...
MEET US:
Website: https://www.duomly.com
Blog: https://www.blog.duomly.com
Facebook: / duomlyapp
Twitter: / duomly
Instagram: / duomly_programming_courses
Linkedin: / duomlyapp
#DOM #javascript