Skip to the page
Year 8 · Autumn 2 · Building the Web

HTML structure: tags, head and body

PracticalPresent ▶

What this lesson covers

Topic 16 The web

KS3 Computing · A web page is text written in HTML (what's on the page), styled with CSS (how it looks), sometimes with JavaScript (what it does). Your browser fetches it from a web server using a URL and HTTP.

Networks and Digital CommunicationCambridge Lower Secondary Computing 0860

You will learn to

  • Explain what a tag is, and why most tags come in pairs: an opening tag and a closing tag.
  • Identify the head and the body of a page, and what goes in each.
  • Create a page with a heading and two paragraphs, save it as index.html and open it in a browser.
  • Use the HTML toy to predict what a tag will show before you type it.

Success criteria

  • I can write an opening and a closing tag for a paragraph.
  • I can say that the title goes in the head and the content goes in the body.
  • I can open my index.html in a browser and see my heading and two paragraphs.

Key words

Say each word, then read what it means. Every one is in the glossary too.

HTML
Markup language for the content of web pages.
URL
The full web address of something online.
Protocol
A set of agreed rules for communication.
CSS
Language that styles how web pages look.

The explanation

Read it here, or open the study page below to go one step at a time with things to try.

HTML: the content

HTML labels pieces of content with tags in angle brackets, usually in pairs: <p> and </p>.

<h1>Hot Potato</h1>
<p>A party game for <strong>four</strong> players.</p>
<img src="potato.png" alt="A cartoon potato">
<a href="https://example.com">Visit the site</a>
<ul>
  <li>Fast rounds</li>
  <li>Silly physics</li>
</ul>
  • <h1> biggest heading. <p> paragraph. <strong> important text.
  • <img> image. alt describes it for blind users.
  • <a> a link. Links are what make it a web.
  • <ul> a bullet list, <li> each item.

Study it

Open the study page and go one step at a time.

The steps for this lesson

Try it

Pages to explore

Check yourself

One question at a time. The reason shows after each answer.

Saved on this device.