If you have ever used a website, you have almost certainly used both kinds. You just could not tell.
Most people only ever think of “a website”, and for most purposes that is enough. The difference matters when you are choosing how to build one, and that is where the word “static” starts to appear.
What is a static website?
A static website is one where every page is already finished before anyone asks for it. The pages are stored as ready-made files, and when you visit, the server simply hands you the right one. Everyone who asks for that page gets the same thing.
Think of a printed leaflet. It was made in advance, and anyone who picks it up reads the same words.
How is it different from a dynamic site?
A dynamic website works more like a kitchen that cooks to order. When you ask for a page, the server runs some code, checks a database and puts the page together there and then. That is how a shop shows your basket, how social media shows your feed and how a site greets you by name.
Two ways a web page reaches you
Neither is better. They suit different jobs.
Why people choose static
- Speed. Nothing has to be built while you wait, so pages can arrive very quickly.
- Less to attack. There is no database or login on the public site for an attacker to break into. Less is not none, because hosting and your own accounts still need care, but the target is smaller.
- Low cost. Handing out finished files is cheap, and often free for small sites.
- Easy to keep. With fewer moving parts there is less to update, less that can break and less to back up.
The less a site has to do each time someone visits, the less can go wrong.
Where static falls short
Static is a poor fit for anything that has to change for each visitor or change all the time.
- Logins and member areas
- Shops with baskets and payments
- Comments and live discussion
- Live data that changes by the minute
You can add these to a static site by connecting outside services, but at some point you are working around the approach rather than with it. Editing is different too. Many static sites are written as files rather than in a form, which is fine for some people and off-putting for others, although friendlier tools exist.
How a static site gets made
The idea is simple. You write the content once, a tool builds the finished pages, and you publish them.
How a static site gets made
The building happens before anyone visits. That is the whole trick, and it is why the result can be so quick.
Is a static site right for you?
If your site is mostly pages that people read, it is often a very good fit. Think of a blog, a profile, a portfolio, course notes, documentation or a small business brochure.
If you need a shop, member logins or a team of editors, you are better off with something dynamic, or a hosted platform that handles it for you. I walk through how to decide in the WordPress pros and cons article, which includes a short decision tree.
I use a static approach for this very site, and my page speed results show one of the benefits.