toolqik

180 · HTML & SEO

HTML Boilerplate Generator

A modern HTML5 starter page with exactly the head tags, CSS and scripts you choose.

Runs in your browser
Head
CSS
Body
index.html, styles.css and script.js
index.html

  
styles.css

  

About this tool

Start a new page with a clean, modern HTML5 template instead of copying an old one. Choose the pieces you need and the generator writes a minimal index.html with matching styles.css and script.js, ready to download as a zip.

What’s in a modern boilerplate

  • <!DOCTYPE html> and <html lang>: standards mode, and the language for screen readers, translation and search engines.
  • <meta charset="utf-8"> first in <head>, and the viewport tag so phones don’t zoom out.
  • Title, description and canonical URL for search results, and Open Graph tags for link previews on social media and chat apps.
  • Favicons: an SVG icon for modern browsers, a favicon.ico fallback and an Apple touch icon. Make them with the Favicon Generator.
  • Theme colour and color-scheme, so browser UI and form controls match your page in light and dark mode.
  • A small CSS reset that fixes the annoying defaults (box sizing, image overflow, form fonts) without removing useful ones.
  • A module script, which is deferred automatically and runs in strict mode.
  • Landmarks and a skip link (<header>, <main>, <footer>) so keyboard and screen reader users can move around quickly.

What’s deliberately left out

No jQuery, no Modernizr, no X-UA-Compatible tag (Internet Explorer is gone), no keywords meta tag (search engines ignore it) and no analytics. Add only what your page actually uses.

FAQ

What is an HTML boilerplate?

A starting template with the tags every page needs: the doctype, <html lang>, character set, viewport, title and links to your CSS and JavaScript.

Do I still need X-UA-Compatible?

No. It only affected Internet Explorer, which is no longer supported. Modern browsers ignore it.

Should scripts go in <head> or at the end of <body>?

With type="module" or defer, put them in <head>. They download in parallel and run after the page is parsed, which is faster than scripts at the end of <body>.

Is the CSS reset necessary?

No, but it fixes common surprises, such as padding changing element widths and images overflowing their containers. Turn it off if you use a framework that has its own.

Is anything uploaded?

No. The files are generated in your browser.

esc
↑↓ navigate↵ open