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

A dynamic website compared with a static website On the left, a dynamic site: you ask for a page, the server runs code and checks a database, the page is built on the spot, and you see it. On the right, a static site: you ask for a page, a ready-made page is fetched, and you see it. Dynamic: built to order Assembled each time you ask You ask for a page The server runs code and checks a database The page is built on the spot You see it Static: ready to serve Prepared before you ask You ask for a page A ready-made page is fetched You see it
In words: A dynamic site builds each page when you ask for it, by running code and checking a database. A static site has the finished page ready in advance and simply hands it over, which means fewer steps between your request and what you see.

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 three steps of making a static site Three steps in order: write the words and pictures as simple files, build them into finished pages with a tool, then publish the finished pages to a host. Write Words and pictures as simple files Build A tool turns them into finished pages Publish The finished pages go to a host
In words: You write the content as simple files, a tool builds them into finished pages once, and those pages are published to a host that hands them out to visitors. The building happens before anyone visits, not while they wait.

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.