Skip to content

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

Lesson note at a glance

Class
SS2
Subject
Digital Technologies
Term
First Term
Reading time
6 min
Start of this note, 5 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 process of planning and building web pages, using HTML for structure and content and CSS for appearance.

Behavioural objectives

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

Advertisement
  1. state what HTML and CSS stand for and what each one does;
  2. explain the difference between an opening tag and a closing tag;
  3. identify the common tags <h1>, <p>, <img> and <a> and state their uses;
  4. describe the roles of <!DOCTYPE html>, <html>, <head> and <body> in a basic web page;
  5. use the building analogy to explain the roles of HTML, CSS and JavaScript.

How does a browser display a website?

A browser is a program that reads the instructions of a web page and shows the result on your screen.

  • Browser: software for viewing web pages, such as Chrome, Safari, Edge and Firefox.
  • Web page: one document on the web, written with HTML and styled with CSS.
  • Website: a collection of linked web pages, such as Jumia or Facebook.
  • Instructions: they tell the computer where to put text, what colours to use and where to place images.

What happens when you open a web page?

  1. You type a web address or click a link.
  2. The browser asks the computer that stores the website (the server) for the page.
  3. The server sends back the HTML file and the CSS that goes with it.
  4. The browser reads the HTML and CSS and displays the page.

What is HTML?

HTML (HyperText Markup Language) is the language that sets out the structure and content of a web page.

  • Role: it defines what is on the page, such as a heading, a paragraph, an image or a button.
  • Importance: without HTML, there is no web page.
  • Analogy: HTML is the bones of a human body or the blocks of a house.

How does HTML use tags?

A tag is a word inside angle brackets (< >) that labels a piece of content.

Advertisement
  • Opening tag: marks where the content starts, for example <p>.
  • Closing tag: marks where the content ends and has a slash, for example </p>.
  • Element: the opening tag, the content and the closing tag together, for example <p>Hello</p>.
  • Tags without a closing tag: a few tags, such as <img>, stand alone.
  • Attribute: extra information inside an opening tag, for example href in a link or src in an image.

Which common tags should you know?

There are four common tags in this lesson: <h1>, <p>, <img> and <a>.

Tag Use Example
<h1> The biggest, most important heading <h1>Welcome</h1>
<p> A regular paragraph of text <p>I love coding.</p>
<img> Puts a picture on the page <img src=”logo.png” alt=”School logo”>
<a> Creates a link to another page <a href=”about.html”>About us</a>
  • Other headings: <h2> to <h6> give smaller headings, with <h6> the smallest.
  • src: the attribute that gives the name or address of the picture.
  • alt: the attribute that gives a short text description of the picture.
  • href: the attribute that gives the page the link goes to.

What is CSS?

CSS (Cascading Style Sheets) is the language that controls how a web page looks.

  • Role: it defines how the page looks, while HTML defines what is on it.
  • Analogy: if HTML is the skeleton, CSS is the skin, clothes and makeup.
  • Without CSS: a page shows plain black text on a white background.

What can CSS change?

  • Colour: the colour of text or of the page background, for example a blue heading.
  • Font size: how big or small the text is.
  • Spacing: the space inside an element (padding) and around it (margin).
  • Position: where an item sits, for example a photo in the centre of the screen.
Advertisement

What does a CSS rule look like?

A CSS rule has a selector, a property and a value, written as h1 { color: red; }.

  • Selector: the element to style, here h1.
  • Property: the feature to change, here color.
  • Value: the setting to apply, here red.

How do HTML, CSS and JavaScript differ?

HTML gives structure, CSS gives appearance and JavaScript gives action. Think of a building project:

  1. HTML: the foundation, the walls and the roof (the structure).
  2. CSS: the paint on the walls, the curtains and the tiles (the decoration).
  3. JavaScript (taught later): the electricity and plumbing. It makes things work, like a doorbell or a light switch (the action).

What is the basic structure of a web page?

Every HTML file follows a set order of parts, and the browser expects that order.

Line Code
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>My First Webpage</title>
5 </head>
6 <body>
7 <h1>Welcome to My Site!</h1>
8 <p>This is my first time learning web design.</p>
9 </body>
10 </html>

What does each part do?

  • <!DOCTYPE html>: tells the browser that the page is written in modern HTML.
  • <html>: the container that holds the whole page.
  • <head>: holds behind-the-scenes information, such as the title shown on the browser tab.
  • <title>: sets the text on the browser tab.
  • <body>: holds everything the user sees, such as text, images and videos.

How do you create and view a web page?

  1. Open a text editor, such as Notepad.
  2. Type the HTML code.
  3. Save the file with the ending .html, for example index.html.
  4. Double-click the file to open it in a browser.
Advertisement

Teacher’s tip: A tiny mistake, such as a missing / or >, can make the whole page look broken. Always check your “punctuation”.

How do HTML and CSS compare?

HTML sets out the content and structure of a page. CSS controls its colour, size, spacing and position.

Feature HTML CSS
Full name HyperText Markup Language Cascading Style Sheets
Role Content and structure Appearance and design
Analogy The skeleton / the walls The clothes / the paint
Example <h1>Hello</h1> h1 { color: red; }

Evaluation

  1. Which language would you use to change the background of a website to yellow?
  2. What is the difference between an opening tag and a closing tag?
  3. Can a website exist with only CSS and no HTML? Give a reason.
  4. State the job of the <head> tag and the <body> tag.
  5. In the building analogy, which part of a house stands for JavaScript?

Assignment

Write the basic structure of an HTML page with “My School” as the title, your own name in an <h1> heading and one <p> sentence about your school. Below the code, write the four common tags from this lesson and one use of each.

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.