Sample HTML file
A small HTML5 page with a viewport tag, inline CSS, headings, a 10-row table, a form and a list. Free, no sign-up. Updated 19 November 2026.
What these files are
A small HTML5 page with a viewport tag, inline CSS, headings, a 10-row table, a form and a list. It has no scripts and no external files, so it renders the same offline.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
HTML5 pages start with <!doctype html>, which tells browsers to use standards mode. The charset meta tag should come early in the head so the browser decodes the page correctly, and the viewport tag makes mobile browsers lay the page out at the width of the device instead of a desktop width.
These files open in any web browser. A web server should send them with the header Content-Type: text/html; the same format is also saved with the extension .htm.
1 file to download
| File | Size | What it is |
|---|---|---|
| sample.html | 2 KB | HTML5 page with headings, a 10-row table, a form and a list; inline CSS, no scripts tables: 1; table rows: 10; forms: 1 |
MIME type: text/html. Total 2 KB.
Good for testing
- HTML parsers and scrapers (the table has a known row count)
- HTML to PDF conversion
- Sanitisers and email templates
Check a file
python -c "import pandas as pd; print(pd.read_html('sample.html')[0].shape)"Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample.html | 9d8173365b2811e3111175305f6a1a14ff74b084bff8d4c2f3e260678441fc14 |