Skip to content
Novus Examples
html220 B

HTML — Hello World

A minimal, valid HTML5 document — doctype, head, and a single heading — for testing HTML parsers, highlighters, and validators against the simplest well-formed page.

Preview — first 12 lineshtml
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
    <p>This is a minimal, valid HTML5 document.</p>
  </body>
</html>

Specifications

Language
HTML
Kind
hello-world
Lines
11
Encoding
UTF-8
Line Endings
LF

What is a .html file?

HTML (HyperText Markup Language) is the structural markup language of the web, using nested tags to define document content, semantics, and links. It is typically paired with CSS for presentation and JavaScript for behavior. It is the foundational format rendered by browsers.

How to use this file

Use an example HTML file to test parsers, DOM construction, sanitization of untrusted markup, and rendering or scraping pipelines.

Generated by generation/code_samples.py. Free for any use, no attribution required — license.