Account

What new tool do you want?

Developer Tools

HTML Boilerplate Generator

Generate a modern HTML5 starter page with the viewport meta tag, SEO description, Open Graph tags, favicon and stylesheet links.

How to use

  1. 1Fill in the page title, description and language.
  2. 2Tick the extras you need and copy the HTML.

Frequently asked questions

Why is the viewport meta tag important?

Without it, phones render the page at desktop width and zoom out. width=device-width, initial-scale=1 makes responsive CSS work.

What are Open Graph tags?

og: meta tags control the title, description and image shown when your page is shared on Facebook, LinkedIn, Slack and others.

Why add the lang attribute?

It tells screen readers how to pronounce the text and helps search engines and translation tools.

A worked example of why escaping matters here

Enter a page title of A & "B" and the generator doesn't drop it straight into the HTML — it runs it through an escape function first, producing <title>A &amp; &quot;B&quot;</title>. Without that step, the raw & would be interpreted as the start of an HTML entity (potentially mangling the rendered title) and the unescaped " would prematurely close the attribute value if the same text were used inside a meta tag's content="..." — which is exactly why the same escaped title also appears correctly inside the generated og:description content="..." attribute, not just in the visible <title> text.

Why the viewport tag is the one line that breaks mobile layouts if missing

Without <meta name="viewport" content="width=device-width, initial-scale=1">, mobile browsers render the page at an assumed desktop width (usually 980px) and then zoom the whole thing out to fit the screen — meaning every media query and responsive CSS rule you wrote becomes irrelevant, because the browser never actually uses the phone's real viewport width for layout. This single meta tag is the difference between a page that responds to screen size and one that just looks like a tiny, zoomed-out desktop page on mobile, regardless of how much responsive CSS you've written.

Why Open Graph tags matter even if you never use Facebook

The og: meta tags this generator adds aren't Facebook-specific despite the name — Slack, LinkedIn, Discord, iMessage and most chat apps all read the same Open Graph protocol to build the preview card that appears when a link is pasted. Without them, a shared link falls back to whatever the platform can scrape from the page (often just the raw <title>, with no description or image), which is why a page missing og:title and og:image tends to share as a bare, unappealing text link while a page with them generates a rich preview card — a meaningful difference for click-through rate on anything shared socially.

A blank title becomes My Page, and the script starts off

Page title opens on My Page, and if I clear it the page still gets My Page rather than an empty title tag. Ampersands, quotes, and less-than signs in the title are escaped so they cannot break the tag. Description starts empty and is optional. Language code opens on en. Open Graph tags, the favicon link, and the stylesheet link all start on. The script tag starts off, and so does the light and dark color-scheme switch. I turn those on only when I want them in the page. The result is a full starter document built from those switches, not a fragment I have to wrap myself.

Related tools

More: Developer Tools