← Teacher guides

Teacher guide: How a web page is made

For Years 9–10: a web document is three layers, content, structure (HTML) and presentation (CSS). See each layer on its own, change one without touching the others, and find out why keeping them apart matters for whole sites, phones and screen readers. No coding needed; the HTML & CSS course puts it to work.

Open the student course · How the ideas build

Each lesson works two ways. Students can work through the online tutorial at their own pace (it checks their answers and saves their progress in their browser), or you can teach it to the whole class from the slides, then send students into the tutorial for the Modify and Make steps.

Every lesson guide has plain-language notes, the answers to every check, a solution for every task, and slides and a worksheet for Waypoints Prepare. These guide pages are not linked from student pages, but they are not secret either: keep printed Teacher editions for answers you do not want students to find.

Whole-course cheat sheet: Open to print (every command, grouped by unit: a handout for the final challenge)

Three layers

Content, structure and presentation, and why they are kept apart.

How a web page is made in 5 minutes (read before teaching this unit)

The idea in plain words

Every web page is three layers. Content is what it says: the words, pictures and links. Structure is what each part is: HTML tags mark a heading, a paragraph, a list, the menu (nav), the main part. Presentation is how it looks: CSS rules set colours, fonts, sizes and layout.

Kept apart, each layer can change on its own. Swap the style sheet and the page looks completely different, but its structure and words are untouched. One style sheet can style every page of a site, so one change restyles them all. A screen reader ignores the look and reads the structure ("Heading level 2: This week"; "List, 3 items"), so a page that fakes a heading with big bold text sounds like plain text to a blind reader. The same structure can be laid out for a phone or a laptop.

Links

The Code pathway's HTML & CSS course is where students write pages; these lessons are the idea, with no coding needed.

What students get wrong

  • How it looks is what it is. Big bold text is not a heading unless the structure says so.
  • If it looks the same, it is the same. A screen reader, a search engine and a phone layout read the structure, not the look.

The words

content, structure, presentation, HTML, tag, CSS, style sheet, rule, screen reader.

Cheat sheet: Open to print (A4, with board pictures) · Open in Print · Markdown

Project briefs

Printable task sheets for assessment or extension: students make something, hand it in and explain their choices. The success criteria are the curriculum nodes' own. Open the briefs page

One page, two looks (after separation)

A club has one page of information and wants it to look different for the website and for a printed noticeboard, without rewriting the page.

Make a small page about something you know well, with a heading, paragraphs and a list. Give it one look using CSS. Then give the same page a second look by changing only the CSS. Explain what each layer did.

Hand in:

  • Your page's HTML, the CSS for each look, and a screenshot of the page with each look.
  • A table sorting at least six things from your page into content, structure and presentation.
  • An explanation of one tag in your HTML and one rule in your CSS: what each one does that the other does not.
  • A sentence or two on why separating the layers helped when you made the second look.

Evidences:

  • The three layers of a web document (AC9TDI10K02 node 1): Correctly assigns specific examples (e.g. heading text, <h1> tag, font-size rule) to the correct layer; Does not confuse structural tags with visual appearance
  • Representing documents with HTML and CSS (AC9TDI10K02 node 2): HTML file uses structural tags correctly (headings, paragraphs, at minimum); CSS rule targets an HTML element or class and changes its presentation; Student can explain what the HTML tag does versus what the CSS rule does
  • Why separation matters (AC9TDI10K02 node 3): Explains at least one concrete benefit of separation with a specific example; Connects the benefit to a real consequence (e.g. changing one CSS file updates many pages)

Students can use the site's HTML playground or any editor the school approves; it is the separation that matters, not a clever design. Check that the HTML for both looks is identical: students often edit the HTML "just a little" for the second look, which is the point to discuss. In the table, the common slip is putting a tag such as a heading in the presentation column because it looks big. A strong explanation says the tag says what the text is, and the rule says how it looks.