Trying to make sense of front end vs back end development? The front end is what visitors see and click in their browser. The back end is the server, database and logic behind it.
This guide is part of our web development basics series.
| Item | What to know |
|---|---|
| Front end (client side) | HTML, CSS and JavaScript that run in the browser |
| Back end (server side) | Code on a web server that works with databases and decides what to send back |
| How they talk | HTTP requests and responses |
| Dynamic page content | Data from a database inserted into HTML templates |
| Back-end frameworks | Make server-side code much easier to write |
Figures and descriptions come from MDN’s guides, Introduction to the server side and Core learning modules. Documentation changes over time, so check those pages before you rely on the details.
What the front end does
The front end is everything that loads and runs in the visitor’s browser. It covers the layout, the text, the buttons, the forms and the way a page responds when someone clicks.
Three languages do the work, and each has a separate job:
- HTML defines the content structure. MDN says its HTML module covers the basics of the HTML language, before looking at key areas such as document structure, links, lists, images, forms, and more.
- CSS handles the look. It is used to change fonts, colors, sizes and spacing, split content into columns, or add animations.
- JavaScript adds behavior. MDN describes it as a high-level scripting language built into browsers that lets you add functionality to web pages and apps.
If you have never written markup, start with the guide on what is html, then move on to CSS and JavaScript.
What the back end does
The back end runs on a web server that you never see. Its code receives requests from browsers, decides what to return, and talks to the database where information is stored.
MDN notes that most large-scale websites use server-side code to display different data when needed, usually pulled from a database on a server and sent to the browser as HTML and JavaScript. That is how a shop can show a different product list to every search.
Typical back-end jobs include:
- Tailoring content to individual users, which MDN calls perhaps the most significant benefit of server-side code.
- Storing personal preferences, such as saved payment details that speed up later purchases.
- Sending notifications and updates by email or other channels.
Back-end developers rarely write all of this from scratch. MDN explains that server-side web frameworks make this code much easier to write, and its own example uses Django, a Python framework.
How a request travels between the two sides
Every page view is a conversation. According to MDN, browsers and servers communicate using the Hypertext Transfer Protocol, known as HTTP.
When you click a link, submit a form or run a search, the browser sends an HTTP request to the server. Each request carries a method that defines the action, such as getting a file or saving or updating some data. The server then processes it and replies with an HTTP response, which the browser displays.

For a plain-language walk through the whole journey, see how do websites work. It covers browsers, servers and addresses in the order they come up.
Static and dynamic sites: where the back end matters most
A static site returns the same hard-coded content whenever a resource is requested. It needs little back-end logic, so a beginner can build one with only front-end skills.
A dynamic website generates some of its response only when needed. MDN says its pages are normally created by inserting data from a database into placeholders in HTML templates, a much more efficient way to store large amounts of content than static pages.
The rule of thumb is simple. If every visitor sees the same fixed pages, you are mostly in front-end territory. If pages change per user, or visitors can log in, order or post, you need a back end.
Where the line blurs
The split is not perfectly clean. Browsers expose APIs that sit on top of JavaScript, and MDN says browser APIs are built into your web browser and can expose data from the browser and the surrounding computer environment.
Third-party APIs work differently. MDN says they are not built into the browser by default, so you generally retrieve their code and information from somewhere on the Web. A front-end developer who adds a comments widget is already depending on someone else’s back end.
Which side should you learn first?
Most beginners start with the front end, because results show up in a browser straight away. MDN’s core learning modules begin with HTML, then CSS styling, then JavaScript.
Back-end learning is still worth the effort. MDN states that in the modern world of web development, learning about server-side development is highly recommended.
- Build a few static pages with HTML and CSS.
- Add interactivity with JavaScript.
- Pick one server-side language and framework, and build a small site that saves data.
MDN adds that the behavior of a server must be implemented by your server-side code, whichever programming language or web framework you select. So the choice of language matters less than understanding requests and responses.
Frequently asked questions
Is front end the same as client side?
Show answer
In practice, yes. Front-end code is the client-side code that executes in the visitor’s browser, while back-end code is server-side code on the web server.
Can one person do both?
Show answer
Yes. Small projects are often built by a single developer who handles the browser code and the server code. Larger teams usually divide the work by side.
Do I need a back end for a simple website?
Show answer
Not necessarily. A site that serves the same pages to everyone can be static, so a back end becomes necessary only when content must change per user or data must be saved.
Which side is harder?
Show answer
Neither is easier across the board. The front end demands attention to design and how the page behaves for visitors, while the back end demands care with data and how requests are handled.



