
Technology • 75 • 30 students • Created with AI following Aligned with New Zealand Curriculum
Free PDF · we'll email you a copy
Have a do-now activity typing exercise test, then add CSS to HTML, Images and Navigation
Students extend an existing multi-page HTML website by linking an external CSS stylesheet, adding images, and creating working navigation. The lesson begins with a short typing exercise and builds practical capability through teacher modelling, guided coding, and an individual website improvement task.
Students will:
layout.css correctly in the <head> of my HTML page.alt text.<h1>My Website</h1>
<p class="centre">Welcome to my page.</p>
Students record their words or characters per minute and one accuracy goal. Emphasise that coding requires careful typing, not just speed.
layout.css, then adding the following inside the <head> of index.html:<link rel="stylesheet" href="layout.css">
The teacher demonstrates a simple rule such as body { background-color: #336699; }, saves both files, and refreshes the page. Explain that RGB describes a colour using three values—red, green, and blue—each from 0 to 255. Hexadecimal notation uses six hexadecimal digits in #RRGGBB pairs: the first pair is red, the second green, and the third blue. For example, #FF0000 is red and #336699 is a blue-grey colour. Briefly connect this to Year 9 learning: computers represent data using binary, and these numbers or digits are another way of representing the colour information without needing to calculate the binary values.
As a short teacher demonstration, change the background from an RGB value such as rgb(255, 0, 0) to #FF0000, then to #336699, and ask students to predict the visual change. If time allows, students spend 5–10 minutes using a pixel-colour tool such as CS Unplugged Pixel Painter or the CS Field Guide colour/pixel tool to decode or create a few colours, then apply one chosen RGB or hex colour to their website background. This activity is optional and may be shortened if time is limited. Formative checks: “What do the three RGB values represent?”, “Which part of #336699 controls blue?”, and “What change should we expect from rgb(255, 0, 0)?” Students follow along, check that their file names and folder location match, and note one visible change.
images subfolder and an image linked from a complete online URL ending in .jpg, .png, or .gif. Use the image coding slides to show:<img src="images/photo.jpg" alt="Description of the photo">
Students add two images between the main content tags, using different methods where possible. They test each image and correct missing files, incorrect paths, or unsuitable dimensions. Discuss why descriptive alt text supports accessibility.
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="videos.html">Videos</a></li>
</ul>
</nav>
Use the navigation demonstration slides to model saving copies of index.html as about.html and videos.html, opening each page, and replacing only the content between the main content tags. Students create or check three pages and test every link. Pause for a quick partner check: one student clicks while the other reads the file names and predicts the destination.
43–63 min · Website improvement challenge. Teacher explains the independent task using the improvement challenge slide. Students improve their website by applying CSS to the body, content, footer, or navigation; adding two images; and completing three-page navigation. They must make one deliberate design choice for a specific audience, such as changing colour contrast, spacing, alignment, or hover colour. Students record their changes and any debugging steps on the coding practice and website checklist. Teacher conferences with students, prioritising broken links, unclosed tags, incorrect file paths, and unsaved files.
63–71 min · Peer testing and feedback. Students work in pairs, opening one another’s website and using the testing section of the coding practice and website checklist. Each tester checks: stylesheet connected, two images visible, meaningful alt text, all navigation links working, and a clear design choice. Students give one specific strength and one actionable improvement. The owner makes one quick correction.
71–75 min · Plenary and exit check. Teacher displays the plenary question slide and asks students to explain why a relative path such as images/photo.jpg may fail. Students complete the final checklist response on the coding practice and website checklist: write one line of code they used successfully, identify one error they fixed, and state the next improvement they would make.
images subfolder with suitable image files#336699 represents blue?”, and “How could you make a lighter version of a colour?”alt text, and purposeful design decisions.index.html, about.html, videos.html, layout.css, and an images folder for students who need organisational support.Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with New Zealand Curriculum in minutes, not hours.
Created with Kuraplan AI
Generated using openai/gpt-5.6-luna
🌟 Trusted by 1000+ Schools
Join educators across New Zealand