Wait. Why is that script tag in the body?

  • Browsers read HTML in order
  • If scripts show up before elements, they can't read/update the elements
  • The order of multiple <script> tags matters a lot too

22 / 24