# Static and Dynamic Websites

> Why some sites send the same file to everyone while others build each page as you ask. Where a web app fits, and how to tell which one you need.

**Course:** [HTML, CSS and JavaScript](https://learn.benibix.com/learn/development-web)  
**Time:** 9 min

**After this lesson you can:**

- Tell a static site from a dynamic one
- Say what makes a site a web app
- Pick the simpler kind for a job

## How a static site differs from a dynamic one

A static website is a set of files made ahead of time. Every visitor gets the same page, whether there are 10 of them or 10,000. A dynamic website builds each page at the moment it is asked for. It often reads from a database, so two people can see two different pages.

A static site is simple to run. The server only has to find a file and send it. Nothing is worked out, so it is fast, cheap and hard to break. Many static sites cost nothing to host. A page about yourself, a menu or a page for a small shop fits well.

The weak spot is change. To fix a price on a static site, someone edits the file and puts it back on the server. A site with thousands of pages that change every hour cannot work that way. That is the job a dynamic site was made for.

A dynamic site runs code on the server for each visit. It asks the database for the newest posts, fills them into a page, and sends the result. It can greet you by name, show your own basket and list only the items in stock. Each page costs a little work to make.

A web application goes one step further. It is a program you use inside the browser rather than a page you read. Email, maps and online spreadsheets are web apps. There is nothing to install, and the newest version is waiting every time you open it.

The two kinds also mix. A blog may be static for its posts and still run a small piece of server code for its comment box. So the real question is not which kind a site is. It is which parts of it need to change for each visitor.

People often pick a dynamic site because it sounds more grown up. But it brings a server to keep safe and a database to back up. It has more parts that can fail. If every visitor would see the same page anyway, the static kind is faster and safer.

![A browser on the left sends a request to a web server. The web server reads plain files straight from a folder, and passes every other request on to an application server, which reads a database before the reply goes back.](https://learn.benibix.com/diagrams/inf2-web-server.svg)

### Example: Jack moves his band's site

Jack's band site has 6 pages and changes about once a month. It was dynamic, with a database he never used, and it went down twice last year.

He turns it into 6 static files. It now loads in half the time, costs nothing to host, and has nothing left to break.

**Words in this lesson:** [Static Website](https://learn.benibix.com/term/development/static-website), [Dynamic Website](https://learn.benibix.com/term/development/dynamic-website), [Web Application](https://learn.benibix.com/term/development/web-application)

**Question:** What makes a site dynamic, and not static?

**Answer:** It builds each page when someone asks for it. Dynamic means the page is made at the moment of the visit, often from a database. A static site sends a file that was made ahead of time.

---

Source: https://learn.benibix.com/learn/development-web/static-and-dynamic-websites
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
