The short answer
Front-end development builds what visitors see and use in the browser: layout, text, buttons and forms. Back-end development builds what happens out of sight on the server: storing data, checking logins, processing payments and sending emails. A simple site may need little custom back-end work, but any site with forms, accounts or a CMS depends on both.
Frontend vs backend in one table
Frontend vs backend is the split between what a visitor sees and uses and what the server does out of sight. The table sets out the difference before the sections explain each side.
| Question | Front end | Back end |
|---|---|---|
| Where does it run? | In the visitor's browser | On a server |
| What is it made of? | HTML, CSS and JavaScript | Server-side code, a database and server settings |
| Who can see it? | Anyone, because the browser downloads it | Only the team. Visitors see the results, not the code. |
| Typical tasks | Layout, typography, menus, forms, responsive design, accessibility | Storing data, logins, payments, emails, integrations, security |
| Typical faults | A broken layout on a phone, a button that does nothing, text that is hard to read | A form entry that is not saved, a login that fails, an order that is lost |
| Who usually does it? | Front-end developers, often working with designers | Back-end developers |
What is front-end development?
Front-end development builds the part of a website that runs in the visitor's browser. It turns a design into working pages: the structure in HTML, the appearance in CSS and the behaviour in JavaScript. Menus that open, forms that show errors as you type, images that load as you scroll and layouts that rearrange on a phone are all front-end work.
It also carries responsibility for accessibility, since the markup decides whether keyboard users and screen readers can use a page, and for much of how fast a page feels on a real device. The front end has one firm limit. Everything in it is delivered to the visitor, so anyone can read it. It can never be trusted to enforce rules or to hold secrets.
What is back-end development?
Back-end development builds the part that runs on a server, out of sight. It stores and retrieves data in a database, checks who is logged in, calculates prices, processes form submissions, talks to payment and shipping services and sends emails. It also covers the server configuration, the admin area and the security rules that protect the data.
When a site runs on a CMS or a store platform, much of the back end is already written. Developers configure it, extend it and connect it to other services instead of starting from nothing. On a custom build, or where a feature does not exist off the shelf, the back end is written to fit.
Follow one contact form through both halves
A contact form shows where the split falls.
- The visitor sees the form. The front end draws the fields, labels and button and makes them usable on a small screen.
- As they type, the front end can give quick help, such as pointing out an email address that is missing its @ sign. This is a convenience, not security.
- They press send, and the browser passes the entries to the server.
- The back end checks the entries again, because it cannot assume the browser's checks were run or were honest. It also screens for spam. The guide to CAPTCHA and spam protection for website forms explains the options.
- The back end saves the entry, sends a notification email to your team and may pass the enquiry to a CRM.
- It replies to the browser with a result, and the front end shows a thank-you message or an error in plain words.
The back end now holds personal data, so what it stores, for how long and who can see it should match what your privacy information says. The guide to website terms and privacy policies covers the general points, and a lawyer can advise on the rules where you trade, which differ by country.
Do I need both for a small website?
Every website that does more than show fixed pages has both halves. What differs is how much of each you pay for as custom work.
| Type of site | Front-end work | Back-end work |
|---|---|---|
| A brochure site on a website builder | Template choices and content | Supplied by the platform |
| A brochure site on a CMS with a contact form | Theme set-up or light customisation | Mostly supplied by the CMS, plus configuring forms and email |
| An online store on a hosted platform | Theme customisation | Mostly supplied, although integrations may need extra work |
| A site with a custom booking tool or customer portal | A custom interface | Substantial custom work on accounts, data, rules and notifications |
If a quote lists only design and page building, ask what happens at the back end: where forms go, where data is stored and who maintains the software. If a quote for a simple brochure site is full of back-end work, ask why.
What a full stack developer means
A full stack developer works on both the front end and the back end. The stack is the set of layers that make a site run, from the interface down to the database. Full stack means breadth: the person can build a feature from screen to storage. It does not mean equal depth everywhere, and many are stronger on one side.
For a small project, one full stack developer can be the right fit. For a larger one, specialists on each side may do better work. Ask what they have built, and which part they would hand to someone else.
Why the split matters when you commission or maintain a site
The split decides who does what after launch. Changes to wording, layout and styling are front-end tasks. Software updates, database care, backups, server settings and most security fixes are back-end tasks. A maintenance plan usually covers the second group, and the guide to what website maintenance includes lists the tasks involved.
It matters for redesigns as well. A redesign often rebuilds the front end while keeping the back end and the content, which can save work and risk. Whether that is possible depends on how the site was built. The website redesign process describes the stages, and it is worth asking early whether the back end can stay.
And it matters for ownership. The agreement should say who owns the front-end code, the back-end code, the database and the accounts that host them. A website development contract should make clear what you receive at the end, and what another team would need in order to take the site over.
Questions to ask your developer or agency
- Which parts of the site are custom front-end work, and which come from a platform?
- Where is data stored, and who can access it?
- How is data checked on the server as well as in the browser?
- Which software needs updating, and who does it?
- Who owns the code, the database and the hosting accounts?
- Can another team take over the site later, and what would they need?
A team that builds websites should answer these without jargon. The website development page from Liftup Technologies describes the front-end and back-end work that a build can involve.
