DOM structure:

Document
   |
  html
 /    \
head   body
 |       |
title   button

Example:

Selecting elements

Using child relationships:

const a = document.firstElementChild
  .lastElementChild
  .firstElementChild;

Using query selector:

const a = document.querySelector("button");

Changing button text:

a.innerHTML = "don't click here";

Properties and methods in DOM

Properties (values describing state)

Methods (functions that perform actions)