What is a static website?

A static website is made of files that can be served directly to the browser.

The problem

People often use the word website for very different systems. WordPress, PHP and source framework projects may need server logic. A static export can be reviewed as a ZIP and deployed to static hosting.

Simple solution

  1. Identify static sites by HTML, CSS, JS and image files.
  2. Check whether PHP, database, login or API routes are required.
  3. Use the finished export folder for framework projects.
  4. Review static pages locally before publishing.
  5. Choose static hosting when server features are not needed.

Common mistakes

Checklist

FAQ

Is a static website faster?

Often, because less server work is needed. Images, CSS and JavaScript still matter.

Can static websites use JavaScript?

Yes, browser JavaScript is fine when no server features are required.

Do I need a database?

For simple information websites, usually not.

Related guides