When you use a website, you are only seeing half of it. The buttons, colours and text on your screen are the half built to be looked at. But behind them, out of sight, sits another half that remembers your password, stores your messages and decides what to show you. Every serious site is really two teams working together: the front-end you see, and the back-end you never do.
The front-end: what you see
The front-end is everything that runs in your browser — the part you look at and interact with. It is built from the three web languages: HTML for structure, CSS for style, and JavaScript for behaviour (like a menu that opens when clicked). Because it lives on your device, the front-end is sometimes called the client side.
The back-end: what you never see
The back-end is the server side — the part hidden away on the server. It holds the logic (the rules and decisions) and the database, where lasting information is stored: user accounts, passwords, orders, posts. When you log in, the back-end checks your details against the database. You never see this code; you only see the results it sends back.
Static versus dynamic sites
A static site sends the same fixed pages to everyone — a simple info page or menu never changes per visitor, so it barely needs a back-end. A dynamic site is built fresh for each request, pulling data from the database. Your logged-in feed, showing your posts and your name, is dynamic: the back-end assembles it just for you, so every user sees something different.
The round trip
For a dynamic page the path is a round trip: your browser sends a request to the server; the server asks the database for the data it needs; the database hands it back; and the server builds a response and returns the finished page. Front-end, back-end and database all play a part in a single click.
| Front-end | Back-end | |
|---|---|---|
| Where it runs | Your browser (client) | The server (hidden) |
| Built from | HTML, CSS, JavaScript | Server logic + a database |
| Job | What you see and click | Store data, decide, check logins |
The full stack
Tip: A developer who works on the visible part is a front-end developer; one who works on the server and database is a back-end developer; and one comfortable with both is called full-stack.