// get an element by ID
// const title = document.getElementById("page-title")
// console.log(title)
// get elements by their class name
// const errors = document.getElementsByClassName("error")
// console.log(errors)

// get elements by their tag name
const paras = document.getElementsByTagName("p")
console.log(paras)
console.log(paras[0])
console.log(paras[1])