← All posts

web development

How to Publish a Static Website

· base31.org

A static website can be as simple as one HTML file. You do not need a database or a complicated framework to publish something useful on the web.

Start with three files

Create an index.html file, a style.css file, and a script.js file only if you need interaction. Keep the first version small enough that you understand every part of it.

Make it usable everywhere

Use semantic HTML, readable contrast, keyboard-friendly controls, and a responsive layout. Test on a phone before adding more features.

Deploy and iterate

Put the files in a Git repository and connect it to a static host. Once the site is live, improve it based on what real visitors need rather than adding complexity for its own sake.