S2 ICT | Web Page HTML and CSS Basics Prep Guide (for tutors) | Three layers, one box model, one contrast floor
- 2026-11-17
Students think web design means memorising tags, then a pasted image breaks the layout and a colour change blinds the reader. This lesson turns layout into arithmetic with three tools: the html, head and body skeleton, one box model formula, and a 4.5 to 1 contrast floor.
01 Prerequisites (3-minute check)
If any of these fails, fix it before the lesson starts.
| Skill | Quick check | Pass mark |
|---|---|---|
| Files and folders | Where the image and the HTML file should live | Same site folder, linked by a relative path |
| Image formats | Which format for photos and for line art | JPG for photos, PNG for line art and transparency |
| Pixels | A 960 px page split into 12 columns gives what | 80 px per column |
| Letter case | Does letter case matter in HTML | Not in tag names, but yes in attribute values such as file names |
02 Lesson flow (60 minutes)
| Time | Stage | Tutor does | Student does |
|---|---|---|---|
| 0-8 min | Entry questions | What is a web page made of, and why does the same image shift on two computers | Oral answers; the tutor writes the three layers and the four box model layers |
| 8-22 min | Act 1: the three layers and semantics | html wraps everything, head holds title and meta, body holds content; one h1 per page, p for paragraphs, ul and ol for lists | Students hand-write a 12 line skeleton and check each other for closed tags |
| 22-36 min | Act 2: box model arithmetic | A box with width 300, padding 15 per side and border 2 per side occupies 300 plus 30 plus 4 which is 334 px; twelve 80 px columns make 960 px | Students compute 334 px and explain why it bursts a 320 px column |
| 36-48 min | Act 3: images, alt text and contrast | Every image needs alt text; three 240 KB images plus 12 KB of HTML is 732 KB, about 1.46 s at 4 Mbps; body contrast needs 4.5:1 | Students write alt text for two images and test one colour pair |
| 48-56 min | Selectors and priority | Tag selector is weaker than class, class weaker than id, and inline style wins; more specific rules win | Students predict which of three rules applies |
| 56-60 min | Exit check | Collect three questions and mark at once, labelling errors as skeleton, box model or accessibility | Independent work |
03 Teaching script (read it out)
Scene 1: Act 1: skeleton before decoration
Student: html, head and body.
Tutor: Can head hold three title elements?
Student: No, only one.
Tutor: And if a tag is left unclosed?
Student: Everything after it nests inside.
Tutor: So close each block before writing the next one.
Students hand-write a 12 line skeleton, all tags closed, one title.
Scene 2: Act 2: layout is arithmetic, not luck
Student: 334 px.
Tutor: Show me.
Student: 300 plus 15 times 2 plus 2 times 2.
Tutor: So in a 320 px column it overflows. Either include padding and border in the width or switch to border-box.
Student: And twelve 80 px columns is 960 px?
Tutor: Yes. Work out the total width first, or half the content wraps onto a second line.
Students compute 334 px and say why it bursts a 320 px column.
Scene 3: Act 3: alt text and contrast are specifications for people
Student: Nothing.
Tutor: So write what it shows, for example a student measuring wind speed in the school yard, not the word image.
Student: And colours?
Tutor: Body text needs 4.5:1. Navy #1F3A93 on white is 10.07:1, which passes. Pale yellow on white is about 1.1:1, which is invisible.
Students write concrete alt text for two images and test one colour pair.
04 Question types and worked steps
| Type | Example | Steps | Answer |
|---|---|---|---|
| Page skeleton | A one page self-introduction | html, head with title, body with h1 and p, then check closure | One h1, one title |
| Lists and tables | Clubs and a timetable | ol for ordered steps, ul for unordered items, table for two-dimensional data, th for headers | Lists are not tables |
| Box model | width 300, padding 15, border 2 | Width plus padding twice plus border twice, compare with the column, change box-sizing if needed | 334 px |
| Images and accessibility | Three 240 KB photos | Resize, write alt text, set width, check 4.5:1 contrast | 732 KB, about 1.46 s |
05 Independent practice (3 questions)
| Question | Answer | What to watch |
|---|---|---|
| A 12 column page with 80 px columns is how wide | 960 px | Whether students multiply rather than adding columns |
| width 300, padding 15 per side, border 2 per side: total footprint | 334 px | Whether students double both terms |
| Three 240 KB images plus 12 KB of HTML at 4 Mbps: load time | 732 KB, about 1.46 s | Whether students convert 4 Mbps to 500 KB per second first |
06 Common mistakes and what to say
| Mistake | Student writes | Say this |
|---|---|---|
| Laying out with line breaks | Five consecutive br tags to push content down | Use p for paragraphs and CSS margin for space; br belongs in poems and addresses only. |
| Unclosed tags | Writing div without its closing tag | Close each block as you open it, or write the pair first; a missing close collapses the whole hierarchy. |
| Local absolute paths | src pointing at a drive letter on the student machine | Use relative paths such as images/pic.jpg, or every image breaks after upload. |
| Ignoring alt text and contrast | Empty alt and pale text on white | Describe the content rather than the file name, and keep body contrast at 4.5:1 or above. |
07 Homework (paper, section and question numbers)
- Secondary ICT chapter index — Revise image file sizes before this worksheet
- Image and media file sizes — Questions 2 to 4 on why a 240 KB photo matters more than 12 KB of HTML
- Computer networks and the internet — Extension: compare load time at 4 Mbps and at 100 Mbps
08 Exit check (last 5 minutes)
| Question | Answer | Decision |
|---|---|---|
| Box model with width 300, padding 15 and border 2: total footprint | 334 px | 334 with both terms doubled means pass |
| What should image alt text say | A concrete sentence describing the image | A description rather than a file name means pass |
| Twelve 80 px columns make what page width | 960 px | 960 means pass; 80 means one column was counted |
09 Tutor FAQ
Students have no code editor, can they use a phone?
Any plain text tool works, including an online editor. What matters is writing the skeleton first, then checking it in a browser.
Why not start with a framework?
The box model and selectors are the shared floor under every framework; once students can derive 334 px, framework spacing stops being magic.
Must students compute contrast by hand?
No. Show them a browser developer tool or an online contrast checker. The threshold, 4.5:1, is what they must remember.
Find a tutor — freeTutor Registration →
A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.



