What is HTML?

Article

HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. HTML uses a system of elements represented by tags to define headings, paragraphs, links, images, forms and other content. Every page you visit in a browser is built on HTML — it is the skeleton of the web.

Need to format or preview an HTML document?

Open HTML Formatter → Open HTML Viewer →

History

HTML was created by Tim Berners-Lee in 1991 as a way to share documents over the emerging World Wide Web. The first publicly available description of HTML was a document called "HTML Tags", first mentioned on the Internet by Berners-Lee in late 1991. Since then HTML has gone through several major versions: HTML 2.0 (1995), HTML 4.01 (1999), XHTML (2000), and finally HTML5, which was standardized by the W3C and WHATWG in 2014 and remains the current living standard.

Basic Syntax

An HTML document is made up of nested elements. Each element consists of an opening tag, content, and a closing tag. Some elements are self-closing (void elements) and do not require a closing tag. Tags can carry attributes that provide additional information or behaviour.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>My Page</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>This is a <a href="https://example.com">link</a>.</p>
    <img src="photo.jpg" alt="A photo" />
  </body>
</html>

Core Concepts

Semantic HTML5 Elements

HTML5 introduced semantic elements that describe meaning, not just appearance. They help browsers, search engines and assistive technologies understand your content:

Common Tags Reference

HTML vs CSS vs JavaScript

The three core technologies of the web each have a distinct role:

A web page without CSS is plain but readable. A web page without JavaScript still displays content. But a web page without HTML has nothing to show.

Accessibility Basics

Rules to Remember

HTML Document Structure

Every HTML document follows a standard structure:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Page Title</title>
</head>
<body>
  <h1>Hello, World!</h1>
  <p>This is a paragraph.</p>
</body>
</html>

The <!DOCTYPE html> declaration tells the browser this is an HTML5 document. The <head> section contains metadata not visible on the page, while the <body> contains all visible content.

HTML Attributes

Attributes provide additional information about an element and are always written in the opening tag:

<a href="https://example.com" target="_blank" rel="noopener">Visit Example</a>

Common attributes include id (unique identifier), class (CSS class name), src (source URL for images and scripts), alt (alternative text for images) and style (inline CSS).

Frequently Asked Questions

What is HTML?

HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It uses a system of elements represented by tags to define headings, paragraphs, links, images, forms and other content. Every web page is built on HTML.

What does HTML stand for?

HTML stands for HyperText Markup Language. "HyperText" refers to links that connect web pages to each other, and "Markup Language" refers to the system of tags used to annotate and structure content.

What is HTML used for?

HTML is used to structure the content of web pages: headings, paragraphs, lists, links, images, tables, forms and more. Every website you visit in a browser is built on HTML as its foundation.

Is HTML a programming language?

No. HTML is a markup language, not a programming language. It describes the structure of content but has no logic, variables, loops or conditions. JavaScript is the programming language of the web; HTML is used alongside it to provide structure.

What is the difference between HTML and CSS?

HTML defines the structure and content of a web page — what is on the page. CSS (Cascading Style Sheets) controls the visual presentation — colors, fonts, layout and spacing. They are separate languages always used together.

What is HTML5?

HTML5 is the fifth and current major version of HTML, standardized in 2014. It introduced semantic elements (<header>, <nav>, <main>, <article>, <footer>), native audio/video support, the <canvas> element, and browser APIs like localStorage and geolocation.

Related Articles

Sources