JavaScript implements DOM methods we can use
Some common ways of accessing the DOM are getElementById
, querySelector
, querySelectorAll
as well as classList
, classList.add
,
classList.remove
,
classList.toggle
.
We can also construct content with methods like
createElement
,
createTextNode
,
appendChild
, and innerHTML