๐ŸŒ
๐ŸŒ Web Development Basics ยท WEB-101 ยท Session 1 of 6

How the Web Works

Every website and web app runs on one simple exchange: your browser asks a server for something, and the server answers. Understand that request-response dance and the whole web makes sense.

โฑ 9 min read๐Ÿ“… Updated 2026-08-02๐Ÿ“Š Tables, charts & examples

Most of the software people actually pay for and rely on lives on the web - so learning to build for the web is where a lot of a developer's value comes from. It rests on one beautifully simple idea: a client (your browser) sends a request to a server, and the server sends back a response. Everything else is detail on top of that exchange. Get this session and the rest of web development has a solid frame to hang on.

Request and response

When you visit a page, your browser sends an HTTP request to a server, which returns a response - usually the page's HTML. That back-and-forth is the whole engine of the web.

PartWhat it is
ClientYour browser (or app) - it makes requests
ServerA computer that answers requests
Request'Please give me this / do this' + details
ResponseThe answer: content + a status code

A request names a method (what you want to do), a URL (what you want it for), and optional data. The response comes back with the content and a status code saying how it went. As a developer, you'll spend a lot of time on the server side - writing the code that receives requests and builds responses.

Methods and status codes

A small vocabulary covers most of the web: a few HTTP methods (verbs) and status codes (the response's headline).

HTTP methodMeansStatus codeMeans
GETFetch something200 OKSuccess
POSTCreate / submit404 Not FoundNo such thing
PUT / PATCHUpdate500 Server ErrorThe server broke
DELETERemove403 ForbiddenNot allowed

You've seen 404 pages - now you know it's a status code meaning 'the server couldn't find what you asked for'. GET fetches, POST submits (like a form), and the 2xx/4xx/5xx codes tell you whether it worked, you asked wrong, or the server failed. This vocabulary is spoken across all of web development.

The frame for everything web

  • Client-server - your browser requests, a server responds. That's the web.
  • A request has a method (GET/POST/...), a URL, and optional data.
  • A response has content and a status code (200 ok, 404 not found, 500 error).
  • As a developer you mostly write the server side - receiving requests, building responses.

๐ŸŽฏ Key takeaways

  • The whole web runs on one exchange: a client (browser) sends a request, a server sends a response.
  • A request has a method (GET fetches, POST submits...), a URL, and optional data.
  • A response carries content plus a status code (200 success, 404 not found, 500 server error).
  • Developers mostly write the server side - code that receives requests and builds responses.

Frequently asked

What's the difference between GET and POST, and when do I use each?

GET and POST are the two HTTP methods you'll use most, and the distinction is about intent. GET is for fetching or reading something without changing anything - when you visit a page, click a link, or load data, that's a GET: 'please give me this'. It's meant to be safe (it doesn't alter data on the server) and repeatable (making the same GET twice should have the same effect as making it once). POST is for submitting data or causing a change - creating a new account, posting a comment, submitting a form, making a purchase: 'here's some data, please do something with it'. The practical differences follow from that: GET requests carry their information in the URL (which is why you see things like ?q=cats&page=2 in the address bar - those are query parameters), so they're visible, bookmarkable, and shouldn't carry sensitive or large data; POST requests carry their data in the request body, not the URL, so they're more appropriate for form submissions, larger data, and anything sensitive (though real security needs HTTPS, which encrypts everything). A good rule: if the request only reads data and changes nothing, use GET; if it creates, updates, or triggers an action, use POST (or its cousins PUT/PATCH for updates and DELETE for removal). Getting this right matters because it makes your app behave correctly with browser features - for instance, browsers may re-request GETs freely (caching, back button) but warn before re-submitting a POST, precisely because a POST might repeat an action like a payment. So think of GET as 'reading' and POST as 'doing', and you'll pick correctly the vast majority of the time.

Do I need to build the browser side (client) or the server side, or both?

It depends on what you want to build, but understanding both is valuable and you'll often touch both - though many developers specialise. The client side (also called front-end) is what runs in the browser: the HTML structure, CSS styling, and JavaScript that makes pages interactive - it's what the user directly sees and clicks. The server side (back-end) is the code running on the server that receives requests, does the real work (reading and writing data, applying business logic, checking permissions), and builds the responses to send back - it's where a lot of an app's actual value and complexity lives, and it's what you can build with your Python skills. Someone who does both is called full-stack. For learning and for building valuable software, the server side is often the higher-leverage place to focus with the skills you've built, because that's where data, logic, security and integrations happen - and it's what frameworks (including the Larz stack) help you build. You don't have to master front-end design to build genuinely useful web apps; plenty of valuable software is mostly back-end with a simple interface, or exposes its value through an API (which we'll cover) rather than a fancy front-end at all. That said, knowing the basics of the client side - enough HTML and CSS to put together a usable page - makes you much more capable and self-sufficient, which is why the next session covers them. A practical path: understand the whole request-response picture (this session), get comfortable enough with HTML/CSS to make a functional page, and focus your real building energy on the server side where your programming skills shine. You can always deepen front-end skills later if you're drawn to the visual, interactive side. Both matter, but you can build valuable things by being strong on the server side and competent on the client side.

Session 1 of 6 complete

Next up: HTML & CSS: Structure and Style

Continue to Session 2 โ†’

Related lessons

More in this course

Course home → · Browse all courses →