What is HTML?

HTML (HyperText Markup Language) is the standard markup language for creating web pages and web applications. HTML defines the structure and meaning of web content using elements marked by tags, which label each piece of content, such as headings, paragraphs, images, and links. It works alongside CSS for styling and JavaScript for behavior.


Web Design

More About HTML

HTML uses tags to mark up text, images, and other content. A page is built from a series of elements that describe the meaning and structure of its content: this part is a heading, that part is a paragraph, this image belongs here. The browser reads that structure to render the page. How the page looks is controlled separately with CSS, and behavior comes from JavaScript.

Elements sit in a hierarchy, with a single root element (html) containing everything else. Everything a page shows, or knows about itself, nests somewhere inside that root.

What hypertext and markup mean

The name spells out the job. “Hypertext” is text with links in it: the connections that let one page point to another, within a single site or across the web. “Markup” means annotating content with tags so the browser knows what each piece is: a heading, a paragraph, an image. Put together, HyperText Markup Language is a language for labeling content and linking it to the rest of the web.

A minimal HTML document

A complete web page takes only a few lines. Here’s the smallest useful HTML document, ready to copy exactly as written:

A tree diagram of a minimal HTML document: the html root element contains two branches — head, which holds the title element describing the page, and body, which holds the visible content, here an h1 heading and a p paragraph. It shows that every element on a page nests somewhere inside the single html root.

<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, world</h1>
<p>My first paragraph.</p>
</body>
</html>

Line by line, here’s what the browser does with it:

  • <!DOCTYPE html> tells the browser to read the file as a modern HTML document.
  • <html> opens the root element that wraps the whole page; </html> on the last line closes it.
  • <head> holds information about the document rather than visible content. The <title> inside it defines the document’s title, shown in the browser’s title bar or tab.
  • <body> holds everything readers see: here, a top-level heading (<h1>) and a paragraph (<p>).

Save that complete snippet as a file with a .html extension and open it in any browser: it renders as a page. That’s the entire trick. An HTML document is plain text, structured by tags.

Tags and attributes

Every element follows the same anatomy: an opening tag (the element’s name in angle brackets, like <p>), the content, and a closing tag with a slash (</p>). A few elements, such as the <img> image element, are void elements: they can’t contain content, so they take only an opening tag and no closing tag.

Attributes add information inside the opening tag. For example, the img element uses a src attribute to name the image file and an alt attribute to describe the image in text. Old presentational attributes like align on paragraphs are obsolete in the current standard: control alignment and layout with CSS instead.

HTML vs. CSS vs. JavaScript

The three core front-end languages split the work, and none replaces the others:

  • HTML defines the structure and meaning of content: headings, paragraphs, images, links, and forms.
  • CSS controls how that content looks: colors, fonts, spacing, and layout.
  • JavaScript adds behavior: anything that responds when a visitor clicks, types, or scrolls.

HTML alone makes a complete, readable page. Add CSS when you want the page to look like yours, and JavaScript when the page needs to do something rather than just say something.

HTML5 and the HTML Living Standard

There is no numbered HTML release to wait for. The specification is maintained by the WHATWG (Web Hypertext Application Technology Working Group) as the HTML Living Standard and updated continuously; when we checked in August 2026, the spec’s header read “Last Updated 20 July 2026.” “HTML5” survives as the everyday name for the modern standard: the spec’s own introduction asks “Is this HTML5?” and answers, “In short: Yes.” New features land in the Living Standard as they mature instead of arriving in a numbered version.

How to create an HTML file

You don’t need special software. Write your markup in any text editor, save the file with a .html extension, and open that file in any web browser to see the rendered page. There’s no compiler and no build step. Double-clicking a .html file opens it in your default browser for viewing; to change it, open the same file in your editor, save, and refresh the browser.

To go past the basics, see our guide How To Learn HTML In 2026 for a step-by-step path.

Frequently Asked Questions

Is HTML a programming language?

No. HTML is a markup language: it labels and structures content but has no logic, loops, or variables. Interactivity comes from a programming language such as JavaScript, which runs alongside your HTML.

Is HTML easy to learn?

Yes. HTML tags are plain, readable text with no programming logic, which is why HTML is usually the first language new web developers pick up. Our guide How To Learn HTML In 2026 (on the DreamHost blog) lays out a full learning path.

Does HTML cost anything to use?

No. HTML is an open web standard: there's nothing to buy or license. A free text editor and a web browser are the only tools you need to write and view it. Costs only appear when you publish, for things like hosting and a domain name.

Special Offer
Custom Website Design
Get a one-of-a-kind, mobile-friendly website that makes your brand truly shine. Share your vision with us and we'll take it from there.