HTML Terms Explained
Core Concepts
| Term | Meaning |
|---|---|
HTML | HyperText Markup Language — the standard language for web pages |
Tag | An instruction in angle brackets, e.g. <p>. Most come in pairs. |
Attribute | Extra info inside a tag: <a href="page.html"> |
DOCTYPE | Declares the HTML version: <!DOCTYPE html> |
DOM | Document Object Model — the tree structure JavaScript can manipulate |
Common Tags Quick Reference
| Tag | Purpose |
|---|---|
<h1>–<h6> | Headings (h1 = most important) |
<p> | Paragraph of text |
<a href=""> | Hyperlink |
<img src="" alt=""> | Image |
<div> | Block-level container |
<span> | Inline container |
<ul>/<ol>/<li> | Unordered/ordered lists |
<form>/<input> | Forms and input fields |