Reading · 6 min
What HTML does
You are previewing a free lesson. Enrol to save progress and take quizzes.
HTML describes the meaning and structure of content. A heading is a heading, a list is a list, a link is a link.
Browsers read HTML and build a tree of elements called the DOM. Search engines and screen readers use the same tree, so meaningful structure helps everyone.
Core elements
- h1 to h6 for headings
- p for paragraphs
- a for links
- ul and ol for lists
- img for images, always with an alt attribute
