Short answer
Back end development is the server-side work that decides what information a site sends back when a browser asks for it. The code can read a database, check who the user is, and build the response. The front end, running in the browser, handles layout and behavior. MDN also calls this work server-side programming or back-end scripting.
Last verified against the sources listed below.
Key takeaways
- Back end code runs on the server and chooses what the browser receives.
- A request includes a URL and a method such as GET or POST, and the server returns a status and a body.
- Front end code uses HTML, CSS, and JavaScript in the browser. Back end code can use many languages.
- An API is a set of rules that lets software talk to a program, often through URLs.
- Dynamic pages pull data from a database into a template instead of storing every page as a file.
- MDN names PHP, Python, Ruby, C#, and JavaScript with Node.js as example server languages.
What is back end development? It is the work of writing the code that runs on a server, receives a request from a browser, and decides what to send back. MDN’s introduction to the server side also calls this server-side programming or back-end scripting.
Most large sites use that code to build a page when someone asks for it, often by reading a database and filling an HTML template. The same machinery can store preferences, limit who sees a record, and send a notification. The browser still draws the page. The server chooses the information.
How does a server answer a browser?
The browser sends an HTTP request, and the server sends an HTTP response.
MDN’s client-server overview says the request carries a URL for the resource and a method for the action. GET reads something, such as a product page. POST creates something, such as a new record, and puts the data in the body.
The response starts with a status code. 200 OK means success, 404 Not Found means the resource is missing, and 403 Forbidden means the user may not see it. The body of a successful GET is the resource itself, such as HTML or an image.
A dynamic request adds steps. MDN’s sports-team example is a useful outline. The browser requests a URL.
The web server sees that the URL is dynamic and hands it to the application. The application reads the parameters, loads rows from the database, and inserts them into a template. It returns the generated HTML with a status code.
How does the back end differ from the front end?
The front end runs in the browser and shapes the page. The back end runs on the server and chooses the content.
| Front end | Back end | |
|---|---|---|
| Where it runs | In the web browser | On the server |
| Main job | Appearance and behavior of the rendered page | Which content is returned for a request |
| Languages MDN names | HTML, CSS, and JavaScript | Any server language. Examples include PHP, Python, Ruby, C#, and JavaScript with Node.js |
| What it can reach | Little or no access to the operating system | The server operating system, plus databases and other stored data |
| Who picks the stack | Visitors arrive with their own browsers | The developer chooses the language and version |
MDN’s server-side introduction is the source for that split. JavaScript is the overlap: it can run in the browser and, with Node.js, on the server. The concerns stay different.
The part people see is still web design. Back end work supplies the data that design is arranging.
What does an API do here?
An API is a contract that lets other software use a program, instead of a screen meant for a person.
MDN’s API glossary defines an API as the features and rules inside a program that enable that kind of interaction. On the web, those features are often methods, properties, events, and URLs. A back end API is usually a set of URLs with agreed methods.
A GET might return a product as JSON. A POST might create an order. The browser, or another server, calls the URL.
MDN’s glossary examples are browser APIs, such as geolocation or camera access. The definition still fits a site’s own HTTP interface, because it includes URLs among the features a developer calls. The client-server overview shows the matching response pattern: status code plus a body, and the body does not have to be HTML. JSON and XML are the data formats MDN names for this style of response.
Where does the data live?
The usual place is a database, which the server reads and updates while it builds a response.
MDN says a dynamic site stores the information once and inserts it into a template, which is more practical than a separate static file for every product or post. The template is the HTML shape. The database is the changing part.
The PostgreSQL 19 documentation describes PostgreSQL as an open-source object-relational database that supports a large part of the SQL standard. It can be used and distributed free of charge. It is one database a back end can talk to, not the only one.
Python.org lists web and internet development, and database access, among the things people use Python for. That matches MDN’s inclusion of Python as a server-side language. WordPress.org says WordPress is built on PHP and MariaDB, which is another working pair of application code and a database.
What else happens on the server?
The server also enforces rules, remembers the user, and can send messages.
MDN groups the useful jobs into a few buckets. Efficient storage is the database work above. A customized experience means storing preferences, such as a saved card or a location, and using them on the next visit.
Controlled access means showing a person only what they are allowed to see, which is how a bank or a social site can serve the same URL shape to many people with different contents. Sessions let the server remember that this browser already signed in.
You do not have to ship a huge original file for the server to store. A JPG compressor shrinks a photo in the browser first. MDN lists images among the static files a server stores and returns.
A smaller file is less to write to disk and less to send in the response. The image tools cover other formats the same way. Compression does not replace the back end. It only reduces what the server has to keep.
Frequently asked questions
What is a static site in this picture?
MDN describes a static site as one that returns the same hardcoded file whenever a given URL is requested. The browser sends a GET request, the server reads the file, and a success response is usually 200 OK. If the file is missing, the server can return 404 Not Found. A static server does not change the response based on cookies or URL parameters, and it only needs to handle GET. Dynamic sites still serve static files such as CSS, JavaScript, and images the same way.
Which HTTP methods does MDN highlight?
The client-server overview lists GET to read a resource, POST to create one, HEAD to fetch metadata without the body, PUT to update or create, and DELETE to remove a resource. TRACE, OPTIONS, CONNECT, and PATCH are noted as less common. URL parameters on a GET request are visible and editable, so MDN says not to use them for updates. POST carries the new data in the body. A successful update in MDN's profile example returned 302 Found with a Location header.
Why does MDN mention frameworks?
MDN says developers usually write against a framework, which is a collection of functions, objects, and rules that handles common jobs. On the server those jobs include sessions, users, authentication, database access, and templates. The client-server overview uses Django, a Python framework, as a concrete example: URL patterns map to view functions, a model describes the stored fields, and a render function fills an HTML template. MDN does not rank frameworks against each other.
What does WordPress.org say the software is built on?
WordPress.org's about page says WordPress started in 2003 when Mike Little and Matt Mullenweg forked b2/cafelog, and that today it is built on PHP and MariaDB and licensed under the GPLv2. PHP is one of the server-side languages MDN lists, and MariaDB is the database that holds the content. That pairing is a real example of back end code plus stored data. The about page does not describe a particular hosting price.
Can the server return something other than HTML?
Yes. MDN says server-side code can build and return other files, such as text, PDF, or CSV, or data such as JSON or XML. That matters when JavaScript in the browser fetches new content and updates the page without loading a whole new document. The server can also do work that is not a page at all, such as sending a registration email or writing a log. The response still starts as an answer to an HTTP request.
Sources
- Introduction to the server side · MDN, 2026
- Client-server overview · MDN, 2026
- API · MDN, 2026
- What Is PostgreSQL? · PostgreSQL, 2026
- About Python · Python Software Foundation, 2026
- About WordPress · WordPress.org, 2026