# Front End and Back End

> What happens between a browser and a server when a page opens. The two halves of a website, and the three languages every browser reads.

**Course:** [HTML, CSS and JavaScript](https://learn.benibix.com/learn/development-web)  
**Time:** 9 min

**After this lesson you can:**

- Say which half of a site runs where
- Name the three languages a browser reads
- Explain what a full-stack developer does

## What the front end and the back end are

Every website has two halves. The front end runs in your browser, on your own phone or laptop. The back end runs on a server, a computer far away that stores the data. The front end is built from three languages: HTML for the content, CSS for the look, and JavaScript for actions.

A web browser is the app that joins the two halves. You type an address, and the browser asks a server for the page. The server sends back files. The browser reads the HTML, applies the CSS, runs the JavaScript, and draws what you see. All of that takes well under a second on a good line.

Those three languages split the work cleanly. HTML says what is on the page: a heading, a picture, a button. CSS says how it looks: the colour, the size, where it sits. JavaScript says what happens when you click or type. Every browser in use today reads all three.

The back end does the work you cannot see. It checks a password, saves an order, looks up a price, and sends back the answer. It can be written in almost any language, such as Python, PHP or Java. It keeps its data in a database.

Web development is the name for building both halves. Some people work only on the front end and care about speed, looks and ease of use. Some work only on the back end and care about data and safety. A full-stack developer does a bit of both.

The line between the halves matters for one big reason. Anything that runs in the browser can be read and changed by the person using it. So a price check, a stock count or a login test must also happen on the back end, where the user cannot touch it.

People often start by trying to learn every tool at once. The tools change every few years, but the three browser languages have stayed the base since the 1990s. Learn those first. Every framework you meet later is built on top of them.

![A browser on the left, marked front end, holds three stacked boxes: HTML for what is on the page, CSS for how it looks and JavaScript for what it does. An arrow marked request goes right to a server, marked back end, holding code and a database, and an arrow marked files back returns.](https://learn.benibix.com/diagrams/dev-front-back-end.svg)

### Example: Lucy plans a bakery website

Lucy is building a site for a bakery that sells 40 kinds of bread. The menu page, the photos and the order button are front-end work.

Saving each order and emailing it to the shop is back-end work. She does both, so for this job she is a full-stack developer.

**Words in this lesson:** [Web Development](https://learn.benibix.com/term/development/web-development), [Web Browser](https://learn.benibix.com/term/general/web-browser), [Front End](https://learn.benibix.com/term/development/front-end), [Back End](https://learn.benibix.com/term/development/back-end), [Full-Stack Development](https://learn.benibix.com/term/development/full-stack)

**Question:** Why must a website check prices on the back end, not only in the browser?

**Answer:** The user can read and change anything in the browser. Code in the browser runs on the user's own device, so they can change it. Only the server is out of their reach, so the real checks belong there.

---

Source: https://learn.benibix.com/learn/development-web/front-end-and-back-end
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
