Just enough HTML
15 minBehind every block is HTML, the language that describes a page. You will not write it — but later modules say things like "the page has no H1", so you need to know the words.
Key termstagH1 / H2 / H3anchor textalt textpage title
- Tag
- A label in angle brackets that says what something is.
<h1>Boiler servicing</h1>means "this is a main heading". Most tags open (<h1>) and close (</h1>). - Headings
- H1 is the page's main title, H2 are section titles, H3 are sub-sections. Like a book: one title, chapters, sub-chapters. A page should have exactly one H1 — never pick a heading just to get bigger text.
- Paragraph / list
<p>is a paragraph;<ul>is a bulleted list,<ol>a numbered one.- Link
<a href="/contact">Contact us</a>:hrefis where it goes, the words between the tags are the anchor text. Good anchor text says where it goes ("book a boiler service"), not "click here".- Image
<img src="van.jpg" alt="Brightwater engineer by a service van in Bristol">:srcis the file;altdescribes the image for blind users and for search engines. Always fill it in.- Page title
<title>is the text on the browser tab and the blue headline in Google results. It is not the same as the H1, though they are often similar.
Seeing the real HTML
To see the HTML of any page: open it in Chrome, right-click an empty area, choose View page source (shortcut Ctrl+U). Use Ctrl+F to search for <h1 or <title. Or right-click an element and choose Inspect to see its tag highlighted.
You are only looking here — you never type or change anything in this view, so you cannot break the site by opening it. It is normal for the wall of text to look strange the first few times; you only ever need to find one or two lines in it, and
Ctrl+F jumps you straight to them. You can say in one sentence each what an H1, anchor text and alt text are, and open View Source without worry.