Don't forget to hit the ⭐ if you like this repo.
- a) Document Object Model
- b)
document
- a)
getElementById()
- a)
document.createElement()
- a)
appendChild()
- a)
textContent
- a)
classList.add()
- a)
classList.remove()
- a)
addEventListener()
- a) Prevents the default behavior of an event
- b)
parentNode
- a)
remove()
- a)
value
- a) Access the
style
property of the element - a)
classList.contains()
- a)
getElementsByClassName()
- a) It sets or gets the HTML content of an element
- a) Use the
setAttribute()
method - a)
insertBefore()
- b) It selects and returns all elements that match a specified CSS selector
- a)
document.createTextNode()
- a)
replaceChild()
- b)
firstElementChild
- a) Stops the propagation of an event
- a)
hasAttribute()
- b)
lastElementChild
- b) It sets or gets the text content of an element
- a)
innerHTML = ""
- a)
cloneNode()
- b)
nextElementSibling
- a) It returns the width of an element including padding, border, and scrollbar (if any)
- a)
hasChildNodes()
- a)
scrollIntoView()
- b)
previousElementSibling
- a) It returns the height of an element including padding, border, and scrollbar (if any)
- a)
element.hidden
- a)
getBoundingClientRect()
- a)
closest()
- a) It returns the width of an element including padding but excluding border and scrollbar (if any)
- a)
getComputedStyle()
- a)
matches()
- a)
element.hasAttribute()
- a) It returns the height of an element including padding but excluding border and scrollbar (if any)
- a)
offsetWidth
- a)
contains()
- a)
offsetHeight
- a) Scrolls the element into view, making it visible in the viewport
- a)
element.style.hasOwnProperty()
- a) It returns the height of an element including its content, padding, and scrollbar (if any)
- a)
getComputedStyle().getPropertyValue()
Please create an Issue for any improvements, suggestions or errors in the content.
You can also contact me using Linkedin for any other queries or feedback.