/en-tutor-prep-s2-ict-html-web-page-basics/
/en-tutor-prep-s2-ict-html-web-page-basics/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

Junior Secondary ICT (S2) | Web Page Structure and HTML Guide (for tutors) | Heading levels, links, alt text and page weight

Junior Secondary ICT (S2) | Web Page Structure and HTML Guide (for tutors) | Heading levels, links, alt text and page weight

  • 2026-11-21

Students browse every day yet give up at the first view of source code. This lesson teaches six tags, one h1 and one download formula, so a page is finished in minutes and can be explained.

Objectives — By the end students can: (1) write the HTML skeleton (DOCTYPE, html, head, body) and explain each layer; (2) build a heading hierarchy with h1 to h6 and use exactly one h1; (3) add links and images with alt text; (4) divide total bytes by bandwidth to get download time and explain why images are compressed.

01 Prerequisites (3-minute check)

If any of these fails, fix it before the lesson starts.

Skill Quick check Pass mark
Capacity units How many KiB are in 1 MiB? 1,024 KiB
Rate conversion How many KiB per second is 1 Mbps? 125 KiB (1,000 divided by 8)
Hexadecimal What is FF in denary? 255

02 Lesson flow (60 minutes)

Time Stage Tutor does Student does
0-5 min Opening check Open the source of a school page and ask which lines are content Point out where body starts
5-20 min Act 1: skeleton and headings From DOCTYPE to body, then demonstrate h1 to h6 Copy the skeleton and start their own page
20-35 min Act 2: links and images Cover a href and img src with alt, relative versus absolute paths Add one internal link, one external, one image
35-50 min Act 3: styling and weight One CSS line changes colour and font, then time four images Set a colour with #RRGGBB, compute seconds at 1 Mbps
50-55 min Independent practice Three questions: tag pairing, colour code, download time Work alone, no discussion
55-60 min Exit check Ask three students one question each; note missing alt or unclosed tags Answer orally, rewrite the tag if wrong

03 Teaching script (read it out)

Scene 1: Skeleton and heading levels

Use a house: DOCTYPE declares a legal building, html is the whole house, head is the meters you never see but need, and body is the rooms you can see. The two vital lines in head are meta charset and title, for encoding and the browser tab. Headings run h1 to h6, and a page uses exactly one h1, because search engines and screen readers judge the topic from it; body text uses p and lists use ul with li. Tags always pair up: five paragraphs mean ten tags, and one missing closing tag collapses everything after it. Have students type the five-line skeleton and put their own name inside h1.

Students should explain the difference between head and body and why only one h1 is allowed.

Scene 2: Links, images and alt text

A link is a plus href: page2.html is a relative path to your own second page, while a full https address is absolute, and target with rel opens it safely in a new tab. An image is img with src and alt, and alt is not decoration; it is the replacement text when the image fails and the only text a screen reader gets. Write what the image shows in one sentence, around 125 characters at most, and never the word image. There is one measurable accessibility rule too: body text against its background needs a contrast ratio of at least 4.5 to 1, so pale grey on white fails. Demonstrate by breaking the image path on purpose and showing how alt rescues the page.

Students should write one alt sentence and say when alt should be left empty for decoration.

Scene 3: Colour codes, styling and page weight

A colour is #RRGGBB in hexadecimal, each pair from 00 to FF, that is 0 to 255, so 256 cubed gives 16,777,216 combinations; #FF8000 is red 255, green 128, blue 0, an orange. Styling has three levels: inline style, a style block in head, and an external style.css, and at S2 the only rule to fix is that repeated changes belong in the external file. Then weigh the page: four images at 300 KiB each total 1,200 KiB, and 1 Mbps delivers 1,000 divided by 8, that is 125 KiB per second, so the page needs 1,200 divided by 125, which is 9.6 seconds; on 10 Mbps the same page takes 0.96 seconds. Turning the 300 KiB PNG into a 90 KiB JPEG saves 210 KiB, which is 70 per cent, and cuts the wait from 9.6 to 7.9 seconds. Page weight is waiting time.

Students should explain why a faster connection helps more than a faster computer, showing the before and after compression.

04 Question types and worked steps

Type Example Steps Answer
Tags and structure One h1 and three paragraphs: how many tags? Every element opens and closes, so count each pair Eight (two for h1, six for p)
Colour codes What are the red, green and blue values of #FF8000? Read two digits at a time: FF is 255, 80 is 128, 00 is 0 Red 255, green 128, blue 0
Download time Four 300 KiB images at 1 Mbps: how long? Total KiB divided by KiB per second (1,000 divided by 8) 1,200 divided by 125, that is 9.6 seconds
Accessibility check Image has alt and contrast is 4.5 to 1: is that enough? Check all four: heading order, alt, contrast, keyboard use Two pass, so still check heading order and keyboard
Sanity check (teach this): Four checks: the tag count must be even, since one unclosed tag collapses the page; there is one h1 and the rest are h2 or lower; every content image carries alt, with empty alt only for decoration; and download time uses 1,000 divided by 8, that is 125 KiB per second, not 1,000 KiB. An answer of one megabyte per second at 1 Mbps means bits and bytes were confused.

05 Independent practice (3 questions)

Question Answer What to watch
Write a minimal five-line HTML skeleton DOCTYPE, html, head with title, body, all tags paired Check meta charset and closing tags
Name the colours of #00FF00 and #FFFFFF #00FF00 is pure green (0, 255, 0) and #FFFFFF is white (255, 255, 255) Check each pair is read as hexadecimal
Six 250 KiB images at 10 Mbps: how long? 1,500 KiB divided by 1,250 KiB per second is 1.2 seconds Check the count is multiplied first and 10,000 divided by 8

06 Common mistakes and what to say

Mistake Student writes Say this
Unclosed tags collapse the layout Three paragraphs with only two closing tags Every opening tag needs its closing tag; the browser guesses, and a wrong guess costs an hour, so count tags before saving.
Several h1 tags on one page Each section heading is h1 to look bigger A page has exactly one h1 and size belongs to CSS; a broken hierarchy is read wrongly by screen readers and search engines.
Missing alt, or alt that says image img with src only, or alt=”image” alt states what the picture shows in one sentence within about 125 characters; only decorative images take empty alt.
Treating 1 Mbps as 1 MB per second Answering 1.5 seconds for six 250 KiB images 1 Mbps is 1,000,000 bit per second, so 125,000 B or 125 KiB, making the answer 1,500 divided by 1,250, that is 1.2 seconds.

07 Homework (paper, section and question numbers)

08 Exit check (last 5 minutes)

Question Answer Decision
How many h1 tags may a page have? One An answer of one per section means the hierarchy is not understood
What is the green value of #FF8000? 128 (hexadecimal 80) An answer of 800 means the pairs were not read
Four 300 KiB images at 1 Mbps: how long? 9.6 seconds An answer of 1.2 seconds means Mbps was read as MB per second

09 Tutor FAQ

What if students cannot install an editor?

Any plain text editor works; Notepad plus a browser is enough, because the lesson is about structure, not tools.

Should JavaScript be taught?

Not at S2. Structure, alt text and page weight come first, so students understand a page is a document before behaviour.

Can a site builder be used for homework?

The artefact can be built that way, but students must explain which tags were generated and how big the images are, or the structure is lost.

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.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →