Start this hobby
Your first practical checklist
Buy or borrow
A computer and a text editor. A free code editor with syntax highlighting is enough, and your browser's developer tools let you inspect and test pages.
First 30 minutes
Create a folder with an index.html file and write a simple page with a heading, a paragraph and a link, then open it in your browser.
First week goal
Follow a static site generator's quick-start to turn a Markdown file into a page using a template, then compare it with your hand-written version.
Avoid this mistake
Copying large chunks of template code you do not understand, so build small, read each line and keep only what you need.
Is this for me?
A quick fit check
Good signs
- You like making things on a computer and want a website you control completely, rather than a drag-and-drop builder.
- You are comfortable with a text editor, or happy to learn the command line as part of the hobby.
- You enjoy tinkering until a layout looks right and will read documentation to find out why it does not.
Think twice if
- Anything dynamic, such as comments, user accounts or a shop, needs third-party services or extra code, which a purely static site does not provide itself.
- Git, the command line and build tools have a learning curve, and error messages can be baffling at first.
- Free hosts and tools change their limits and terms, so check them and keep your files in your own repository so you can move.
Make static site building easier
Start with a single hand-written HTML file and a free host, and add a generator only when copying the same header onto every page becomes a nuisance.
First session
What to do in the first 30 minutes
Create a folder, open it in a text editor and make an index.html file with a title, a heading and a paragraph about a hobby of yours.
Open the file in your browser, edit the text and refresh to see changes, then add a link and an image with a sensible alt text description.
Create a style.css file, link it in the page head and change colours, fonts and spacing, using the browser's developer tools to experiment.
Add a second page that uses the same stylesheet, link the two pages together and note what you want next, such as a navigation bar or a blog.
The appeal · Digital practice
Why try static site building?
A static site is a website built from files that are ready to serve, with no database or server-side code running when someone visits. You write pages in HTML or Markdown, style them with CSS and, if you like, use a static site generator such as Hugo, Jekyll or Eleventy to apply templates before publishing to a host. It differs from a database-driven CMS such as WordPress and from building web apps. Beginners start with a one-page HTML site, then move to a generator, a blog and a custom domain.
Full control
You own every file, can move hosts easily and never depend on a plugin that stops being maintained.
Fast, simple, cheap sites
With no database to run, pages load quickly and hosting is often free or very cheap.
Transferable skills
HTML, CSS, Markdown, Git and the command line are widely used in web and technical work.
Keep it simple
What you need to begin
- A computer and a text editorA free code editor with syntax highlighting is enough, and your browser's developer tools let you inspect and test pages.
- Plain HTML first, then a static site generatorWrite one site by hand to learn HTML and CSS, then try a generator such as Eleventy, Hugo or Jekyll when you want templates and Markdown.
- Git and a free static hostVersion control with Git and a host that deploys from a repository let you publish by pushing files; check each host's current free limits.
- A domain name (optional)A .co.uk or .com name usually costs a few pounds to about £15 a year; buy from a registrar you trust, and the host's free address is fine to start.
The fundamentals
Four skills to build
HTML and CSS
Structuring content with semantic HTML and styling it with CSS is the foundation of every site.
Markdown and templates
Writing content in Markdown and using layouts lets one design wrap many pages.
Git and version control
Committing changes and pushing to a repository keeps a history and often triggers publishing.
Deployment and domains
Understanding builds, hosting and DNS records gets your site from your computer onto the public web.
Four small steps
Your first week
- Create a folder with an index.html file and write a simple page with a heading, a paragraph and a link, then open it in your browser.
- Add a CSS file to style the page with fonts, colours and a simple layout, and make a second page that links back and forth.
- Install Git, create a repository and publish the folder to a free static host using the host's instructions, so that you can see your site live.
- Follow a static site generator's quick-start to turn a Markdown file into a page using a template, then compare it with your hand-written version.
The longer path
How progress usually looks
For static site building, a sustainable rhythm is a couple of evenings a week at first, then an hour whenever you add a page, post or feature. Move forward when the current step feels repeatable, not merely possible once.
First pages
You hand-write a few HTML and CSS pages and view them locally.
Published site
You put a site live on a free host from a Git repository, with a layout that works on a phone.
Generator-based site
You use a static site generator with layouts, partial templates, Markdown posts and a build step.
Custom and automated
You use your own domain, add an RSS feed, improve accessibility and speed, and automate builds and deploys.
Progress markers
What improvement looks like
You hand-write a few HTML and CSS pages and view them locally.
You use a static site generator with layouts, partial templates, Markdown posts and a build step.
You use your own domain, add an RSS feed, improve accessibility and speed, and automate builds and deploys.
Spend deliberately
A realistic cost plan
The headline starting range is £0–£15 (a domain name is optional), but access, borrowing and second-hand equipment can change that substantially.
Learn with other people
Community and safety
Finding your people
Web-making communities are mostly online, in forums, chat servers and question-and-answer sites for HTML, CSS and your chosen generator. Locally, look for coding clubs, meetups and library or community-centre digital sessions.
Safety note
Do not publish personal details such as your home address, phone number or children's names, and keep passwords and API keys out of your files and Git history. Respect copyright for images, fonts and code, credit your sources, and think about accessibility and data protection if you add analytics or forms.
Three common beginner mistakes
- Copying large chunks of template code you do not understand, so build small, read each line and keep only what you need.
- Using absolute local file paths, because links that work on your computer can break online, so use relative links and test after publishing.
- Skipping alt text, headings and phone layouts, so use semantic HTML and test on a narrow screen and with the keyboard alone.
Good to know
One tip worth keeping
The common mistake is jumping into a generator before you understand HTML and CSS, which makes errors baffling, so build one page by hand first. Never commit passwords, API keys or personal details such as your home address to a public repository, because they stay in the history even after you delete them.
Before you begin
Common questions
What is a static site generator?+
A tool that takes your content, usually Markdown, and templates and builds a folder of plain HTML files you can upload. Hugo, Jekyll and Eleventy are well-known examples.
What is the difference between a static site and WordPress?+
WordPress builds pages from a database on a server when they are requested, while a static site is pre-built files. Static sites are simple, quick and cheap to host, but features like comments need outside services.
Do I need to know how to code?+
You need basic HTML and CSS, which many people pick up in a few weeks. Generators then add a little command-line work and template syntax.
Where can I host a static site for free?+
Several services offer free tiers for static sites that deploy from a Git repository. Limits and terms change, so check the current ones before relying on one.
Can a static site have a contact form or comments?+
Not by itself, but you can add third-party form or comment services, or small serverless functions. Check the privacy and data-protection implications before collecting people's data.