Web development · Lesson 01
A page is a conversation
See what happens between entering a URL and reading a page.
- 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.
Browser → Request for a URL
Server → HTML, CSS, images, and other files
Browser → Turns those files into a pageWhich technology describes the structure and meaning of page content?
Your turn
Pick a page you use often. Find one heading, one visual style, and one interaction. Which layer is responsible for each?
The heading is HTML, its appearance is CSS, and a menu that opens after a click is usually controlled by JavaScript.
BUILT TOGETHER
Help make this explanation better.
Have a clearer explanation, a useful example, or a correction? Share it with the community.
Be the first to add your name when you improve this lesson.
How to get credited