Skip to content

Web Design II – SS2 Digital Technologies Lesson Note (First Term)

Lesson note at a glance

Class
SS2
Subject
Digital Technologies
Term
First Term
Reading time
5 min
Start of this note, 6 of 7
Take this term’s notes offline
Reading here is free. Download all 7 SS2 Digital Technologies First term notes as PDF to print and Word to edit.
Download all three terms, ₦2,000
Instant download. Secure payment by Paystack. Card, bank transfer, USSD or OPay. Payment stuck? WhatsApp us.

Web design is the work of planning, building and styling a website.

  • HTML: the “bricks” of the page, which build its structure.
  • CSS: the “paint” of the page, which controls colour, fonts, spacing and layout.
  • This lesson: puts HTML and CSS together to build a working one-page website.
Advertisement

Behavioural objectives

By the end of the lesson, students should be able to:

  1. draw a simple wireframe showing the header, navigation bar, main content and footer;
  2. set up a website folder with index.html, style.css and an images folder;
  3. link a CSS file to an HTML page;
  4. name the four parts of the box model;
  5. build and style a one-page website using <div> tags and basic CSS.

What is a wireframe and how do you plan a website with it?

A wireframe is a simple sketch of where each part of a web page will go, drawn before any coding.

  • Draw first: sketch on paper before you touch the keyboard.
  • Use boxes only: ignore colours and pictures at this stage.
  • Who uses it: professional web designers plan pages this way.

What are the parts of a wireframe?

A basic page wireframe has four parts.

  • The header: where the logo and site name go.
  • The navigation bar: the menu (Home, About, Contact).
  • The main content: where the story or information lives.
  • The footer: the bottom part with copyright information and links.
Header (logo and site name) Navigation bar: Home | About | Contact Main content Footer (copyright and links)
A simple wireframe of a one-page website. Based on standard web design texts.

How should you organise website files?

A website is a collection of files, and they must be kept in one organised project folder.

  • Main folder: one folder for the whole project, for example “My_First_Website”.
  • index.html: the homepage file. Web servers usually open this name first.
  • style.css: the file that holds your design.
  • images folder: a folder to keep all your photos and logos.

What are the rules for naming files?

  • No spaces: do not write “My Photo.jpg”. Use an underscore, as in “My_Photo.jpg”.
  • Same spelling: the name in your code must match the file name exactly.
  • Same place: the code must point to the right folder, for example images/My_Photo.jpg.
Advertisement

Why do images and links fail to work?

  • Wrong file name: a spelling or capital letter that does not match.
  • Wrong folder: the file is not where the code says it is.
  • Spaces in names: these can break the link to the file.

You link a CSS file to an HTML page with a link tag placed inside the <head> section.

<link rel=”stylesheet” href=”style.css”>

  • rel=”stylesheet”: tells the browser the linked file is a style sheet.
  • href: gives the name and location of the CSS file.
  • Where it goes: inside <head>, not inside <body>.
  • Effect: after you save the CSS file and refresh the browser, the page shows the new style.

What is the box model?

The box model is the idea that every element on a web page sits inside a rectangular box made of four parts.

The four parts, from the inside to the outside, are listed below.

  • Content: the actual text or image.
  • Padding: the space inside the box, between the content and the border.
  • Border: the line around the padding and content.
  • Margin: the space outside the box, which keeps other boxes away.

How do you set the parts of the box model in CSS?

Part Example CSS
Content width: 80%;
Padding padding: 20px;
Border border: 2px solid black;
Margin margin: 10px;

How do you create your first website?

You create a website by writing the structure, adding content, styling it and testing it in a browser.

Step 1: The structure

  • <div> tag: a container (wrapper) that groups content into a section.
  • Use: make one <div> each for the header, navigation, content and footer.

Step 2: Adding content

  • <h1>: the main title.
  • <p>: paragraphs of text.
  • <img>: a picture, for example <img src=”images/club_logo.jpg” alt=”Club logo”>.
Advertisement

Step 3: Styling

  1. Open your CSS file.
  2. Give your header a background colour.
  3. Change the font to a clean one such as Verdana.
  4. Use text-align: center; to put your titles in the middle.

Step 4: Testing

  1. Save both the HTML and CSS files.
  2. Open index.html in a web browser.
  3. Check that the images show and the style has applied.
  4. Fix any wrong file names or paths, then refresh the page.

What are the common CSS layout tasks?

What you want to do The CSS code to use
Change background colour background-color: green;
Move text to the middle text-align: center;
Change how wide a box is width: 80%;
Add space inside a box padding: 20px;
Add space outside a box margin: 10px;
Change the font style font-family: Arial;

Class project: how do you build the “School Club” website?

Each student creates a one-page website for a school club, such as the Press Club, Football Team or Music Club.

  1. Sketch your wireframe on paper.
  2. Create your folder and the index.html file.
  3. Code the header, a brief “About Us” section, and a list of members.
  4. Style it using CSS to match the club’s colours.

Evaluation

  1. What is a wireframe, and which four parts of a page does it show?
  2. Name the three items that should be inside your main website folder.
  3. Write the line that links style.css to an HTML page, and say where it goes.
  4. Explain the difference between padding and margin.
  5. Why should a file name not contain spaces?

Assignment

Choose a school club. Draw a wireframe for its website and write out the folder structure you would create for it. Add the CSS code you would use to centre the page titles and to add 20px of space inside a box.

This term's Digital Technologies topics

SS2 First Term · 7 topics

  1. Advanced Word Processing Tools
  2. Advanced Spreadsheet I
  3. Advanced Spreadsheet II
  4. Advanced Presentation Tools
  5. Web Design I
  6. Web Design II
  7. Web Publishing and Hosting
Advertisement

Lesson Notes for Other Classes

Print it or edit it in Word

Every note is free to read online. A PDF or Word copy of one subject costs ₦1,000 for one term, or ₦2,000 for all three terms.

Sign in first, then choose your class and subject at checkout.