Learning overview
- Estimated time
- 4 minutes
- Difficulty
- Beginner
- Prerequisites
- No prior experience required
- Learning outcome
- Explain html using a clear mental model · Apply html in practical HTML work
- Last updated
- July 18, 2026
Definition of HTML
HTML, or HyperText Markup Language, is the standard markup language used to describe the structure and meaning of content on the web.
An HTML document is text containing elements and attributes. The browser parses that text into a Document Object Model tree. CSS can style the tree, JavaScript can inspect or change it, and assistive technologies can expose its semantics to users. HTML is not a general-purpose programming language because it does not provide arbitrary logic such as loops and conditionals.
HTML document example
This small document identifies its language, provides metadata, and uses semantic elements to describe a page topic and supporting navigation.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML Glossary Example</title>
</head>
<body>
<header><nav aria-label="Primary">…</nav></header>
<main>
<h1>HTML gives content structure and meaning</h1>
<p>Browsers turn this markup into a document tree.</p>
</main>
</body>
</html>What to remember
Think of HTML as the semantic source of a page: it says what each piece of content is. CSS decides how it looks, and JavaScript can enhance how it behaves.
Frequently asked questions
Is HTML a programming language?
HTML is a markup language. It describes content structure and meaning but does not implement general-purpose program logic.
What is an HTML element?
An element is a node in the document, commonly created from an opening tag, content, and a closing tag. Some elements, such as img, are void elements.
What does semantic HTML mean?
It means choosing elements by content purpose—for example, nav for major navigation and button for an action—rather than using generic containers for everything.
Topic graph
A taxonomy-generated path through this subject.
Related courses
Related learning
Recommended automatically from shared technologies, topics, intent, and difficulty.
Related Guides
Related Tutorials
Related Glossary
Related Cheatsheets
Related Projects
Related Interview Questions
Related reading
Hand-picked companion pages that deepen this topic.
Your next steps
