Choose exam board for KS4 Computer Science (GCSE)
Choose exam board for KS4 English
Choose exam board for KS4 French
Choose exam board for KS4 Geography
Choose exam board for KS4 German
Choose exam board for KS4 History
Choose tier for KS4 Maths
Choose exam board for KS4 Music
Choose exam board for KS4 Physical education (GCSE)
Choose exam board for KS4 Religious education (GCSE)
Choose exam board for KS4 Spanish

      Adding images to a web page

      Lesson details

      Learning outcome

      I can use images as part of a website.

      Key learning points

      1. Images can be displayed within a web page using HMTL tags.
      2. HTML tags can be applied to construct a web page structure from a provided design.
      3. An attribute is a word or a phrase that can be used to describe an object such as its colour or size.

      Keywords

      • Attribute - a word or a phrase that can be used to describe an object, such as its colour or size

      • Pixel - a single element of an image on a computer screen

      Common misconception

      Images are stored inside HTML files as one document that is downloaded and displayed.

      HTML only references image files, which are stored separately. When a web page is downloaded, the linked images are downloaded separately.

      Teacher tip

      Precision is important. When adding images the exact file name and extension must be spelled correctly.

      Equipment

      Pupils will need access to a device with HTML editing software. Examples in this lesson use the RPF Code Editor https://oak.link/html-editor

      Licence

      This content is © Oak National Academy Limited (2026), licensed on Open Government Licence version 3.0
      except where otherwise stated. See Oak's terms & conditions
      (Collection 2).

      Lesson video

      Loading...

      Prior knowledge starter quiz

      5 Questions

      Q1.
      What does HTML stand for?

      Correct answer: Hypertext Markup Language
      HyperText Machine Language
      HyperTool Markup Language
      HyperTag Management Language

      Q2.
      What is the purpose of HTML tags?

      to create animations
      Correct answer: to define the structure and meaning of content
      to store data in a database
      to write code in a programming language

      Q3.
      Which HTML tag is used for the largest heading?

      <p>
      <b>
      Correct answer: `<h1>`
      <ul>

      Q4.
      Match the tags to their purposes.

      Correct Answer:`<b>`,makes text bold

      makes text bold

      Correct Answer:`<ul>`,creates an unordered list

      creates an unordered list

      Correct Answer:`<li>`,defines a list item

      defines a list item

      Correct Answer:`<em>`,adds emphasis to text

      adds emphasis to text

      Correct Answer:`<p>`,creates a paragraph

      creates a paragraph

      Correct Answer:`<h1>`,creates the largest heading

      creates the largest heading

      Q5.
      What closing tag is used to end a paragraph in HTML?

      Correct Answer: </p>

      6 Questions

      Q1.
      Where are image files stored when used in an HTML web page?

      inside the HTML file
      Correct answer: in a separate file referenced by the HTML
      in the browser’s memory
      on the user’s device

      Q2.
      What is an attribute in HTML?

      a file used to store images
      a tag that creates a webpage structure
      a type of image format
      Correct answer: a word or phrase that describes an object, such as size or colour

      Q3.
      What is the smallest unit of a digital image?

      byte
      attribute
      Correct answer: pixel
      tag

      Q4.
      What tag is used to display an image in HTML?

      Correct Answer: <img>

      Q5.
      Match the attributes to their purposes.

      Correct Answer:`src`,specifies the image source

      specifies the image source

      Correct Answer:`alt`,provides alternative text for accessibility

      provides alternative text for accessibility

      Correct Answer:`width`,controls the horizontal size of an image

      controls the horizontal size of an image

      Q6.
      Put these steps for displaying an image in HTML in the correct order.

      1 - add the <img> tag
      2 - specify the src attribute
      3 - add the alt attribute

      To help you plan your 8 computing lesson on: Adding images to a web page, download all teaching resources for free and adapt to suit your pupils' needs...