/en-tutor-prep-s2-term1-ict-hyperlinks/
/en-tutor-prep-s2-term1-ict-hyperlinks/
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

S2 Term 1 | ICT: Hyperlinks and Paths | 45-minute flow, teaching script, common errors, practice with answers

S2 Term 1 | ICT: Hyperlinks and Paths | 45-minute flow, teaching script, common errors, practice with answers

  • 2026-11-30

Lesson prep guide · S2 Term 1 ICT

Links that work on the author machine and fail elsewhere are usually a path problem, not a typo: the same file needs different paths from different pages. One folder tree settles the three ways.

Lesson objectives Students can (1) separate relative from absolute paths and write 3 correct paths to one file; (2) give the 2 parts of a link, href and readable text, and say why “click here” fails; (3) use a fragment and an external link correctly, and explain target=”_blank”.

01 Prior knowledge check (first 3 minutes)

If any item below fails, fix it first, or this lesson stalls:

Skill Quick check Pass standard
Folders Does a file sit inside a folder, or the folder inside the file? File inside folder
Paths Does ../../ go up one level or two? Two
Addresses What does https:// at the start of an address mean? An encrypted connection

02 Lesson flow (45 minutes)

Time Stage Tutor does Student does
0–4 min Opening diagnostic Show a broken link and ask why it works only for the author Most blame the network, not the path
4–14 min Two kinds of path Read the folder tree: relative from the current file, absolute from the root Write three paths to the same file
14–26 min Two parts of a link Show href with text, a full https address, and a fragment Write three complete anchors
26–37 min External links and new windows Full address, target=”_blank”, rel and the trade-off Write an external link that opens a new window
37–41 min Checking Three checks: it opens, the text names the target, https on external links Check three links on their own page
41–45 min Exit check Collect three answers and note path, part or attribute errors Work without notes

03 Teaching script (read it aloud)

Act one: relative and absolute

A site is a set of folders. Suppose the root holds s2, s2 holds ict, and ict holds index.html and notes.html. From ict/index.html to notes.html you write notes.html, since they are in the same folder; from s2/index.html you write ict/notes.html, one level down; from anywhere you may write /s2/ict/notes.html, the absolute path from the root. All 3 point at one file; the difference is the starting point. Relative paths must be edited when files move, absolute paths are stable but only work on your own site.

Students restate: relative starts at the current file, absolute at the root; three ways to one file.

Act two: the two parts of a link

Most common misconception: that a link needs only href, with any text, or that a local path such as file:///Users/… will work online. The first hides the destination from readers and search engines; the second fails on every other machine.

A link has 2 parts: href names the target, and the anchor text is what the reader sees. “Click here” carries no information; “S2 ICT notes” tells both the reader and the search engine where the link goes. A fragment adds a hash: href=”#section-2″ jumps to the second section of the same page. An external link needs the full address including https://, or the browser treats it as a folder on your own site.

Students restate: href names the target, the text names the destination; external links need the full address.

Act three: new windows and safety

To open a new window, add target=”_blank”. A new window hands control to the other page, so real sites also add rel=”noopener”; students do not need to memorise the attribute, but they should know that opening a new window is a choice with a cost. Three checks finish the job: does it open where expected, does the text name the destination, and does an external link carry https with the full domain. All three passed, the link is done.

Students restate: target for a new window, rel for safety; check destination, text, https.

04 Question types and steps

Type Example Steps Answer
Path judgement A folder tree and three starting points Count levels from the current file notes.html, ict/notes.html, /s2/ict/notes.html
Writing a link An internal notes page href plus readable text href=”notes.html” with “S2 ICT notes”
Fragment Section two of the same page hash plus id href=”#section-2″
External link Hong Kong Observatory Full address including https href=”https://www.hko.gov.hk/”
One file, three ways to write it: relative paths move, absolute paths do notpublic_html/s2/ict/index.htmlnotes.htmlThree waysfrom ict/index.html: notes.htmlfrom s2/index.html: ict/notes.htmlfrom anywhere: /s2/ict/notes.htmlrelative 1, relative 2, absoluteTwo parts of a link: href names the target, the text tells the reader where it goes.

A relative path starts from the location of the current file, so the same notes.html needs a different path on different pages; an absolute path starts at the site root and is always /s2/ict/notes.html. A fragment adds #section to reach part of a page, and an external link needs the full address including https://. Students paste local file paths and wonder why every visitor meets a dead link.

Sanity check (must teach):One notes.html has 3 correct paths; a link has 2 parts; from ict it is one level and from s2 two levels. Always state the starting point, or a path cannot be judged.

05 Three independent practice questions

Question Answer What to observe
The file is s2/ict/notes.html. From s2/ict/index.html, what is the relative path? notes.html The absolute path also works, but it is not relative
From s2/index.html to the same file, what is the relative path? ict/notes.html notes.html alone misses a level
Write an external link to the Hong Kong Observatory (https://www.hko.gov.hk/) and say why not “click here”. Full address in href with the text “Hong Kong Observatory”; “click here” hides the destination Both the full address and readable text are needed

06 Common errors and correction lines

Error Student usually writes Tutor says
Local path “href=file:///Users/me/notes.html” “That is a local path; nobody else has that file. Use a relative or absolute site path.”
Wrong level “From s2/index.html I write notes.html” “One level down: ict/notes.html.”
Missing https “href=www.hko.gov.hk” “Write https://www.hko.gov.hk/, or the browser looks for a folder on your own site.”
Click here “click here“ “Use the page name, so readers and search engines know where it leads.”

07 Homework (paper and question numbers)

08 Exit check (last 3 minutes)

Question Answer Verdict
Where does each kind of path start? Relative at the current file, absolute at the site root “They are the same” means act one is retaught
Two parts of a link? href and readable text Only href means act two is retaught
What do external links need? The full address with https, plus target and rel for a new window Copying the domain alone is not enough

09 Tutor FAQ

Which year group is this page for?

S2 Term 1 ICT web section; S1 can take same-folder and one-level paths, S3 can add SEO and accessible link text.

Can 45 minutes cover paths, parts and attributes?

Yes. Paths and the two parts take 22 minutes, 49 per cent; new windows 11, checking 4, the exit check 4.

Is there a paper to set as homework?

Yes. Questions 9, 10 and 12 of part three of the S2 ICT paper, all with answers.

Find a tutor freeTutor sign-up →

©2026 TutorZone · www.tutorzone.com.hk · Terms of use · All rights reserved. Original TutorZone material for personal study and teaching only; not for resale or republication.

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