For two decades the default answer to “how do I build a website?” was a content management system: WordPress, Drupal, Joomla and the platforms we reviewed in our blogging section. Static websites – the way the web started – have made a big comeback. Which one suits you?
How they differ
A CMS like WordPress stores your content in a database. When a visitor asks for a page, PHP code runs, fetches the content and builds the HTML on the fly (unless a cache already has it). A static site is built in advance: every page is a ready-made HTML file that the server simply sends.
| Static site | WordPress | |
|---|---|---|
| Speed | Excellent out of the box | Good with caching and a light theme |
| Security | Very small attack surface | Needs updates for core, plugins and themes |
| Hosting cost | Very low, often free tiers on static hosts and CDNs | Needs PHP and a database |
| Editing | Files, Git or a headless CMS | Friendly editor in the browser |
| Features | Forms, search and comments via services or scripts | Thousands of plugins |
| Maintenance | Minimal | Regular updates and backups |
When static is the better choice
- Business card and brochure websites that change a few times a year.
- Documentation, portfolios and many blogs.
- Sites that must survive traffic peaks without expensive hosting.
- Old WordPress sites that are no longer updated – converting them to static removes the security risk while keeping the content.
When a CMS is the better choice
- Webshops with stock, orders and customer accounts (see payment processing).
- Membership sites and anything with logins.
- Sites with many non-technical editors who publish every day.
The middle ground
Static site generators and headless CMSs combine both worlds: editors use a friendly interface, and the result is published as static files. Even with WordPress you can get close by using a full-page cache or a plugin that exports static HTML.
Frequently asked questions
Can I edit a static site without coding?
Yes, with a headless CMS or a Git-based editor that writes the content files for you, or by having a developer set up simple templates. Directly editing HTML is also perfectly possible for small sites.
Is WordPress insecure?
WordPress core is well maintained. Most hacks come from outdated plugins and themes, weak passwords and abandoned installations. Kept up to date, it is a solid platform.