HTML Introduction
HTML gives a document meaning. A browser uses its elements to distinguish a heading, a paragraph, a link, and other parts of a page before CSS changes their appearance.
How it works
- HTML is markup, not a programming language: it describes content rather than calculating decisions. CSS handles presentation and JavaScript adds behaviour.
- An element normally has opening and closing tags around its content. Some elements, such as img, are void elements and have no closing tag.
- A useful first check is to read a page without its styling. Its headings, links, and reading order should still make sense.
A practical example
<main>
<h1>Weekend reading club</h1>
<p>Bring a book and a question.</p>
<a href="meeting.html">View the next meeting</a>
</main>
The heading names the page, the paragraph explains its purpose, and the link offers a meaningful next action. The browser supplies basic styling even without a stylesheet.