1 of 12

Lesson 1: Website building blocks

Year 8 – Developing for the web

2 of 12

Think, pair, share

Starter activity

What would make the walls of his house more interesting to look at?

​

How many bricks do you estimate would be needed to build a whole house?

​

If you wanted to add a stencil motif to each brick, and each one took 2 minutes to do, how long would it take?

3 of 12

Lesson 1: Website building blocks

Objectives

In this lesson, you will:

  • Describe what HTML is
  • Use HTML to structure static web pages
  • Modify HTML tags using inline styling to improve the appearance of web pages

​

3

4 of 12

HTML

Activity 1

Hypertext markup language.

​

The ‘bricks’ of the website that provide the structure to organise the text and images of web pages.

​

Each of these building blocks are identified with pairs of tags; one to mark the start of the block, one to identify the end.

​

4

<p>

</p>

<b>

</b>

On sale

5 of 12

HTML examples

Activity 1

​

For example:

  • <h1>Developing for the Web</h1> Developing for the Web
  • <em>Using HTML and CSS</em> Using HTML and CSS
  • Building <b>web pages</b> Building web pages

​

Note: Any text not enclosed by a tag is just presented as plain text.

​

​

5

6 of 12

Make a web page

Activity 1

  1. Download and open the file ‘A1 Home.html’ in a web browser to see what plain text looks like without HTML tags.
  2. Now open the file in a plain text editor.
  3. Use the <p></p> to break up the text into paragraphs to make it easier to read.
  4. Try some of the following tags to improve the appearance of the page:
  5. <b></b>
  6. <em></em>
  7. <q></q>
  8. <center></center>
  9. <ul><li></li><li></li></ul> - bulleted list with each item enclosed in <li></li> tags.

6

7 of 12

Changing appearances

Activity 2

Formatted text is all well and good, but wouldn’t it look better in colour?

​

Here, the web page looks no different to a page in a book.

​

7

8 of 12

Inline formatting

Activity 2

You can make websites look nice directly in the HTML.

​

But you have to do this for each individual piece of text you want to change the look of.

​

For example:

​

<h2 style="color:red;">Title</h2>

Some arbitrary text.

<h2 style="color:green;">Another title</h2>

Some more arbitrary text.

Note how color is spelt. Do you know why?

8

Title

Some arbitrary text.

Another title

Some more arbitrary text.

9 of 12

Style it up!

Activity 2

  1. Open ‘Activity instructions’

​

  1. Work through the activities on the sheet to practise formatting your web page in different ways

9

10 of 12

Can you remember?

Plenary

What are the answers to the following questions about content from this lesson?

​

  1. What is used to provide structure in a HTML document?

​

  1. What will the following line of HTML display?�Using <em><b>HTML</b></em> to format web pages

​

  1. What mistakes are in this line of HTML?

<h1 style="colour:blue;">Search engines<h2>

​

​

10

11 of 12

How did you do?

Plenary

​

  1. What is used to provide structure in a HTML document?�Tags

​

  1. What will the following line of HTML display?�Using <em><b>HTML</b></em> to format web pages�Using HTML to format web pages

​

  1. What mistakes are in this line of HTML?

<h1 style="colour:blue;">Search engines<h2> �Different open and close tag, close tag missing / , color spelt as colour

​

​

11

12 of 12

Next lesson

Summary

12

In this lesson, you...

Explored how to structure web pages with HTML tags, changing their formatting to improve the appearance of on-screen text

Next lesson, you will...

Develop a web page including images to meet design requirements