Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

Five HTML website templates with no framework and no build step: what I learned

I built five small-business website templates (a dental clinic, an industrial construction company, a salon and spa, a property manager and a criminal defense law firm) in plain HTML, CSS and vanilla JavaScript. No frame

I built five small-business website templates (a dental clinic, an industrial construction company, a salon and spa, a property manager and a criminal defense law firm) in plain HTML, CSS and vanilla JavaScript. No framework, no build step, no tracking scripts and self-hosted fonts. Each one opens straight from index.html, even offline.

Here are the decisions that turned out to matter, in case you build templates too.

1. Keep the content in one data file

In most of the templates the services, prices, team members, projects or articles live in a single dados.js file. Add an entry there and it shows up in the grid and gets its own detail page. The buyer edits one file instead of hunting through ten HTML pages, which is the first thing non-developers ask about.

2. Forms that work without a backend

A template that ships a contact form which posts to nowhere is a support ticket waiting to happen. Instead, the contact and booking forms build a pre-filled WhatsApp or email message from the fields. It works on any static host on day one, and a real backend can be plugged in later.

3. Charts without a library

The property management template has an owner dashboard with charts. They are drawn with plain JavaScript and SVG, so there is no chart library to update and nothing extra to download.

4. Be honest about what is a demo

The property template includes tenant and owner portal pages. They are front-end demos with sample data, with no login and no database, and the README labels them as demos. The same goes for photos: the live previews use sample photos, while the downloads ship with neutral placeholder images that print the recommended size, so the buyer drops in their own pictures with the same file name and changes no code.

5. Accessibility basics from the start

Real buttons for actions, real links for navigation, visible focus states and labels on every form field. It is much cheaper to do this on day one than to retrofit it into five sites.

See them

Live previews: https://cauacaetano.github.io/site-templates-preview/

They are for sale on Gumroad (US$ 39 to US$ 69 each): https://endcrow.gumroad.com/

Happy to answer questions about any of these choices in the comments.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.