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
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.
Behavioural objectives
By the end of the lesson, students should be able to:
- draw a simple wireframe showing the header, navigation bar, main content and footer;
- set up a website folder with index.html, style.css and an images folder;
- link a CSS file to an HTML page;
- name the four parts of the box model;
- 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.
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.
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.
How do you link HTML and CSS?
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”>.
Step 3: Styling
- Open your CSS file.
- Give your header a background colour.
- Change the font to a clean one such as Verdana.
- Use text-align: center; to put your titles in the middle.
Step 4: Testing
- Save both the HTML and CSS files.
- Open index.html in a web browser.
- Check that the images show and the style has applied.
- 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.
- Sketch your wireframe on paper.
- Create your folder and the index.html file.
- Code the header, a brief “About Us” section, and a list of members.
- Style it using CSS to match the club’s colours.
Evaluation
- What is a wireframe, and which four parts of a page does it show?
- Name the three items that should be inside your main website folder.
- Write the line that links style.css to an HTML page, and say where it goes.
- Explain the difference between padding and margin.
- 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

