Your page has a heading, some writing and a list. Today you give it real structure: sections with their own subheadings, a picture that sits with the section it belongs to, and a second page you can click through to.
Getting started: open the builder further down and carry on with the site you built last lesson. It is already there.
Ask first: how do you know where one part of a page ends and the next begins? Take answers about headings, lines, spacing. That is what today adds.
Every build step opens on the same site, so nobody reopens or re-finds anything.
A big heading names the whole page. A subheading names one section inside it. That difference is the whole idea of structure: a reader can skim the subheadings and know what is there.
Notice the two different tags below, and that a picture tag is the odd one out: it has no closing tag, because there is no text to wrap.
<h1>All About Cats</h1>
<h2>What they eat</h2>
<p>Mostly fish, in my experience.</p>
<img src="cat.svg" alt="A cat">
Predict beat. Cover the tag names and ask which line names the page and which names a section. The number in the tag is the clue.
Carry on with your site in the builder below.
Here are your two blocks, and the tags they wrote. A subheading is not a heading:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_subheading", "fields": {"TEXT": "What they eat", "ALIGN": "left"}, "next": {"block": {"type": "wp_text", "fields": {"TEXT": "Mostly fish, in my experience.", "SIZE": "normal", "ALIGN": "left"}}}, "x": 10, "y": 10}]}}
<h2>What they eat</h2>
<p>Mostly fish, in my experience.</p>Look for: a subheading with nothing under it. A section with no content is not a section; ask what belongs there before they move on.
The tag number is worth naming out loud: h1 for the page, h2 for a section inside it.
A picture belongs with the thing it shows, not floating at the bottom of the page.
Here is your picture block, and its tag. It carries two pieces of information inside it, and it closes itself:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_picture", "fields": {"IMG": "cat"}, "x": 10, "y": 10}]}}
<img src="cat.svg" alt="A cat">The alt text is worth thirty seconds: it is what someone hears if they cannot see the picture. Not decoration, and not optional on a real site.
Look for: pictures dropped at the end of the page rather than in a section.
Sometimes a section needs a visible edge.
Here is a line sitting between two sections, and the tags. Like the picture, the line closes itself, because there is nothing to put inside it:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_subheading", "fields": {"TEXT": "Where they sleep", "ALIGN": "left"}, "next": {"block": {"type": "wp_divider", "next": {"block": {"type": "wp_subheading", "fields": {"TEXT": "What they eat", "ALIGN": "left"}}}}}, "x": 10, "y": 10}]}}
<h2>Where they sleep</h2>
<p>Anywhere warm.</p>
<hr>
<h2>What they eat</h2>Quick contrast worth drawing: h2 and p wrap their text, img and hr do not. That is the difference between a tag that marks up content and a tag that is the content.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.