What is HTML and How Does it Work?
Advertisement
Ad
What is HTML?
HTML (HyperText Markup Language) is the standard markup language for web pages. It defines the structure and content of a page using elements (tags). Every website you visit is built on HTML.
Basic Structure
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html>
Common Elements
| Tag | Purpose |
|---|---|
| <h1>–<h6> | Headings |
| <p> | Paragraph |
| <a> | Link |
| <img> | Image |
| <ul> / <ol> | Lists |
How Browsers Use HTML
The browser parses HTML into a DOM (Document Object Model) tree, applies CSS for styling, then runs JavaScript for interactivity.
FAQs
Is HTML a programming language?
No — it's a markup language. It describes structure, not logic. More in our HTML guides.
What is the latest version?
HTML5 — the current living standard with semantic tags, video, and canvas.
