Sep 24, 2024
console.dir(document)
to inspect properties and methods of the document object.document.domain
, document.url
, document.title
, document.head
, document.body
, document.all
.getElementById
document.getElementById('headerTitle')
to select an element by its ID.getElementsByClassName
document.getElementsByClassName('list-group-item')
.getElementsByTagName
document.getElementsByTagName('li')
.querySelector
document.querySelector('.header')
selects the header.querySelectorAll
document.querySelectorAll('.title')
.textContent
, innerText
, innerHTML
to adjust text within elements.element.style.property = 'value';