The one-paragraph answer
Permalink:What is HTML? HTML stands for HyperText Markup Language. It is the set of tags you use to give a web page its structure and meaning. You mark some text as a heading, other text as a paragraph, and a phrase as a link. A browser reads those marks and builds a page people can view and use. Hypertext is text that can link to other pages or to a spot in the same page. You can write a whole page in one HTML file and open it in a browser, with no server.
What HTML is not
Permalink:CSS, short for Cascading Style Sheets, is the language for how the page looks. It can change the size of the heading, set the space around a paragraph, or move a sidebar under the main text on a phone. You could make any text look large and bold with CSS, but that would not turn it into a heading that a screen reader can list. Use the HTML heading first, then choose how it looks.
JavaScript is a programming language that can add behavior to a page. At the repair cafe, it could show how many booking slots remain after someone picks a date. A plain link to a page with opening hours does not need that extra step. A browser can follow it even where a script fails to load. Save scripts for jobs that need them, and use the browser's built-in behavior when it does what you want.
HTML also differs from the tool that makes the page. A site builder may store your words in a database and turn them into HTML when a visitor opens the page. A text editor may save the HTML as you wrote it. Either way, the browser needs to know which words are headings, what address a link points to, and what a form field is called. You can inspect the page the browser received even if you do not have access to the tool that made it.
A document you can read today
Permalink:Paste this page into a plain text editor, save it as cafe.html, and open the file in a browser.
If you see the tags on screen instead of a page, check that your editor saved a plain text file with an .html ending, not cafe.html.txt.
The sample uses a link to a heading in the same file, so you do not need a second file or an internet connection to try it.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<title>Repair cafe</title>
</head>
<body>
<main>
<h1>Saturday repair cafe</h1>
<p>Bring a broken lamp or a bike.</p>
<p><a href="#hours">See opening hours</a></p>
<h2 id="hours">Opening hours</h2>
<p>Saturday, 10 a.m. to noon.</p>
</main>
</body>
</html>
The first line asks the browser to use its modern rendering rules.
The html element wraps the page, and lang="en" tells tools the text is in English.
The head holds information about the file, such as the title shown in the browser tab and the setting that lets the page fit a phone screen.
The body holds the visible content.
The main element marks the part that someone came to read, separate from any site-wide menu or footer you might add later.
A pair like <p> and </p> marks the start and end of an element, here a paragraph.
The slash marks the closing tag, while an attribute adds a setting to the opening tag.
The href attribute on the link points to #hours, so the browser looks for the element with id="hours".
On a short page the heading may already be in view, but you can still see the address end in #hours after you follow the link.
Inside a page, give each id to just one element.
Change the h1 to "Sunday repair cafe" and reload the file to see the heading change while the tab still says "Repair cafe."
Now change only the title and look at the tab again to see why the title and heading live in separate places.
Try Tab and Enter to follow the hours link, and check that its words still tell you what will happen before you use it.
Next, put a list of items you can bring after the first paragraph.
Use ul when the order does not matter, or ol for steps the reader needs to follow in order.
Put each item inside its own li so the browser can tell a screen reader which items belong to the list.
To inspect the document after the browser has read it, open the developer tools and find the Elements panel.
It shows the page as a tree, with each element nested inside its parent.
Find the link and you will see it inside a paragraph, which is inside main.
The tree can differ from the file you saved because a browser tries to recover from some markup mistakes.
For instance, if you forget to close a paragraph before a heading, the browser can end the paragraph there for you.
Use the tree to find out what the browser built, then correct the source file so the structure says what you meant.
Why HTML survived every trend
Permalink:Browsers keep handling old pages while adding new features to HTML. A library can move its site to a new publishing tool and still send readers a heading and a link that work much as they did before. HTML outlasts tools because the tool can change how it creates a page without asking the reader to change how they open one. This is also why a short example like the repair cafe can run straight from a file on your computer.
There have always been arguments about what belongs in a document and what belongs in the way it is shown. Notes on the draft stylesheet from the 2007-2009 archive ask whether labels such as "Big Issue" should be in the document text or added by CSS. Read the original mailing list discussion for a different example: how markup could make the link between a quote and its source clear. These are proposals and tests from that time, not rules for how to code today. They show why giving the browser meaning still matters when more than one tool needs to read the page.
Where to go next
Permalink:Pick one page you can finish in an evening, such as the opening hours for a club or the rules for a game. Write the words first, give the page a title and a heading, then link to the next thing a visitor might need. Open the file on a phone or make the browser window narrow. If you add a photo, decide what someone who cannot see it needs to know. Read about the road from HTML4 to see why a browser can still open decades-old pages. Use the Learn HTML hub to choose a guide for the part you want to try next.
Give the page to someone who has not seen it yet, ask them to find one piece of information, and notice what they read as a link. If they miss an important heading, try a more specific name before you reach for a larger font. If you include an address or a date, read it aloud with the words around it to check that it makes sense in context. Each fix gives you a concrete reason to revisit the markup.
Do I still need to read HTML if AI writes the first draft?
Permalink:Yes, if you want to check what the page does and fix it when something goes wrong. Ask the tool for a small page and find the parts you now recognize. Make one change yourself and check the result in the browser before you move on.