Lesson 1 of 18
How the Web Works 🌐
What You'll Learn
- Understand what happens when you visit a website
- Learn what HTTP, HTML, servers, and browsers are
- Understand the difference between frontend and backend
What Happens When You Visit a Website?
Every time you go to a website, a lot happens in less than a second:
- You type a URL like google.com into your browser
- Your computer asks a DNS server to look up the address (like a phone book)
- Your browser sends an HTTP request to that server: "Give me this page, please!"
- The server sends back an HTTP response with the HTML, CSS, and JavaScript
- Your browser reads those files and renders (draws) the page on your screen
Key Terms
- 🌎 Browser — Chrome, Firefox, Safari. Reads HTML/CSS/JS and shows you the page.
- 🖥 Server — A computer that stores website files and sends them to browsers.
- 🔗 URL — The address of a page: https://okstem.org/courses
- 👥 HTTP/HTTPS — The rules for how browsers and servers talk. HTTPS is encrypted (secure).
- 📄 HTML — The structure of the page (like a building's frame).
- 🎨 CSS — The style of the page (like paint and decorations).
- ⚙ JavaScript — The behavior of the page (like the electricity that makes things work).
Frontend vs Backend
Web development has two sides:
- 🖥 Frontend — what you see and interact with. HTML, CSS, JavaScript. Runs in your browser.
- 🔦 Backend — the behind-the-scenes logic. Databases, servers, user accounts. Runs on the server.
This course focuses on frontend development. By lesson 18, you will deploy a live site!
Inspect Any Website
Right-click anywhere on a webpage and choose Inspect (or press F12). You are looking at the actual HTML, CSS, and JavaScript behind the site. Navigate to the Network tab and reload the page to watch HTTP requests happen in real time!
Quick Check
What does a DNS server do?
What language defines the structure of a webpage?
What is the difference between HTTP and HTTPS?