What is a static site?

A static site is a website made of ready-made files (HTML, CSS, JavaScript and images) that a host sends as they are, with no server code running per request.

The pages of a static site are built ahead of time, by hand or by a generator, and uploaded to a host. When someone visits, the host sends the file. Nothing is computed on the server for that visit, which makes static sites fast, cheap to host and hard to break.

The catch is forms. A form has to post to a program that can receive the data, and a static host only serves files. A form that posts to a static page gets an error or is silently dropped.

A form backend fills that gap. The form stays in your static HTML and its action points at the backend, which stores the submission and emails you. This works the same on any static host.

Related