Course contentsLesson 1 of 6← Course overview
  1. 01A page is a conversation18 min
  2. 02Give your content structure24 min
  3. 03Make a layout that adapts32 min
  4. 04Make a button do something35 min
  5. 05Make forms easier to use28 min
  6. 06Keep a trail of your work36 min

Web development · Lesson 01

A page is a conversation

Edit lesson

See what happens between entering a URL and reading a page.

18 minProgress saves on this device
In this lesson
  • Name the browser, server, and URL in a web request
  • Describe the roles of HTML, CSS, and JavaScript

Helpful background: None. This lesson starts at the beginning.

A request and a response

A browser is a program that asks another computer for a resource. The address bar holds a URL; the browser sends a request; a server replies with files. Your browser then interprets those files and draws the page.

Three layers make a page

HTML describes the content and its structure. CSS describes its appearance and layout. JavaScript can respond to actions and update the page. They work together, but each has a different job.

A useful mental model

Think of a web page like a small venue: HTML is the rooms and signs, CSS is the layout and decoration, and JavaScript is the person who responds when someone presses a button.

A browser request, simplifiedtext
Browser  →  Request for a URL
Server   →  HTML, CSS, images, and other files
Browser  →  Turns those files into a page
Knowledge check

Which technology describes the structure and meaning of page content?

Try first; feedback appears after you check.
Apply it

Your turn

Pick a page you use often. Find one heading, one visual style, and one interaction. Which layer is responsible for each?

Continue readingMDN: How the web works

BUILT TOGETHER

Help make this explanation better.

Have a clearer explanation, a useful example, or a correction? Share it with the community.

Contributors

Be the first to add your name when you improve this lesson.

How to get credited
Course overviewNext lesson