A website works through communication between a browser and one or more servers. HTML describes the page’s content and structure, CSS controls presentation, and JavaScript can add behaviour. Backend code handles server-side tasks, and a database stores organised information when the application needs it.
Not every website needs all these parts. A small static information page can work without a database or a custom application backend. Choosing technology starts with the behaviour the site requires.
The main responsibilities
| Part | What it does | Booking-page example |
|---|---|---|
| HTML | Defines meaningful content and controls. | A heading, event description, labels, and form fields. |
| CSS | Controls layout and appearance. | Readable spacing and a form that fits a phone. |
| JavaScript | Runs behaviour where it is deployed, often in the browser. | Updates a price preview or displays a response without reloading. |
| Backend | Processes requests and applies server-side rules. | Checks availability and accepts or rejects a booking. |
| Database | Stores and retrieves structured records. | Events, places available, and accepted bookings. |
JavaScript can also run on a server. PHP, Python, and other languages can implement backend logic. The role matters more than assuming that one language always belongs to one place.
Follow one page request
Imagine opening an event page. The browser uses the address to connect to the appropriate service, typically over HTTPS. It requests the page and receives a response. The response may contain HTML already generated by the server.
The browser reads that document and requests other resources it references, such as stylesheets, scripts, and images. It builds the page, applies styles, and runs relevant scripts. Some applications then make additional requests for data.
Illustrative request trace
Browser → GET /events/beginner-workshop
Server → 200 OK + HTML
Browser → GET /assets/site.css
Browser → GET /assets/workshop.jpg
Browser → displays the event pageThis simplified trace shows separate requests. A page can arrive successfully while an image or stylesheet fails.
What changes when someone submits a form?
The browser sends the submitted values to a server endpoint. The backend decides whether the request is valid and whether the user is allowed to perform the action. It can then read or update stored records and send a response.
For more context, read our guide to the web development skills that remain useful alongside AI.
For a workshop booking, the server needs to check available places at the time it accepts the booking. A number displayed earlier in the browser may already be out of date. Two visitors could try to reserve the last place at the same moment.
The interface should explain the outcome: accepted, unavailable, or temporarily failed. A payment or email service may be involved, but those are additional systems with their own outcomes. A confirmation screen should reflect a verified result rather than merely a clicked button.
Why browser validation is not enough
Browser checks make forms easier to use, but requests can be sent without the intended interface. The server must apply the important rules again. A hidden price field is not a trustworthy price source, and hiding an admin button does not enforce permissions.
Keep private credentials on the server or in an appropriate secret-management system. Code and values delivered to the browser should be treated as visible to the visitor, even if they are minified or absent from the visible page.
You can also explore our guide to learning web development without skipping the fundamentals.
Static and dynamic do not mean good and bad
A static site serves prepared files. A dynamic application can generate or retrieve content in response to a request. Both can be fast, accessible, or poorly implemented. The label does not guarantee quality.
A brochure site may need only a small set of pages and a supported form service. A booking platform needs reliable state and rules. Avoid adding a database just to make a simple project sound advanced.
Use the model to troubleshoot
- Content appears but styling is missing: inspect the stylesheet request and the applied styles.
- A button does nothing: check the script, browser errors, and event handling.
- A submission fails: inspect the request, response, and relevant server logs.
- Old information appears: check the data source and caches rather than repeatedly changing the text in an unrelated file.
When you can identify which part owns a responsibility, the system becomes easier to reason about. Instead of saying “the website is broken,” you can ask a smaller question about a document, resource, request, rule, or record.
Sources and further reading
Technical references checked during preparation on 13 November 2026. Examples and suggested workflows are editorial explanations, not reported client results.


