Sikau

JavaScript · Day 2 · about 25 min

How the web works

HTML is the skeleton, CSS the clothes, JavaScript the behaviour.

What's inside a web page?

When you open a website, your browser receives some files and turns them into the page you see. Today you'll peek inside and meet the three languages every page is made of.

Three languages, three jobs

A house: HTML is the walls and rooms — the structure. CSS is the paint, curtains and furniture — how it looks. JavaScript is the electricity — lights that switch on, a doorbell that rings. It makes things happen.

  • HTML — what's on the page: headings, paragraphs, buttons, pictures.
  • CSS — how it looks: colours, sizes, spacing, fonts.
  • JavaScript — what it does: reacting to clicks, changing text, loading data.

You'll mostly write JavaScript in this course, but it helps to recognise the other two.

The rest of this lesson

  • See it in actionexplain
  • What happens when you open a pageexplain
  • Which language?match
  • Loading a pageorder
  • Quick checkquiz
  • Your turnwrite code
  • What you learnedrecap

Continue this lesson free — run real code in your browser

Continue with Google

See all 68 lessons of JavaScript