Front End and Back End
Level 1 · How a website works
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 contentsLesson 1 of 14
Level 1 · How a website works
Level 3 · CSS basics
Level 4 · Page layout
Level 5 · JavaScript in the page
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
9 mincovers 5 glossary entries
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.
Worked 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.
The words for this lesson5
Check yourself
Why must a website check prices on the back end, not only in the browser?
Finished this lesson?
Marking it complete also marks its 5 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.