Skip to main content

HTML

HTML is the markup language used to describe the structure and meaning of content on the web.

What Is HTML

HTML stands for HyperText Markup Language. It uses elements such as headings, paragraphs, links, images, forms, and sections to define what content is.

Browsers read HTML and turn it into the document structure users see and interact with.

How To Use HTML

Create an .html file, add a document structure, then open it in a browser.

HTML is usually used with CSS for styling and JavaScript for behavior.

Basic Example

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Hello HTML</title>
</head>
<body>
<main>
<h1>Hello, HTML</h1>
<p>This page is built with semantic HTML.</p>
</main>
</body>
</html>

Common Concepts

  • Elements define content, such as h1, p, a, and img.
  • Attributes add extra information, such as href, src, and alt.
  • Semantic tags such as main, article, and nav improve accessibility and structure.

What To Learn Next

Learn forms, semantic layout, accessibility basics, metadata, and how HTML works with CSS and JavaScript.