Content · Web Development · HTML

HTML Project: Build a Responsive Image Story

Build this HTML project step by step with a starter example, detailed tasks, testing checks, and common mistakes.

1 views Published Oct 19, 2026 Updated Oct 19, 2026 Admin

Ready to build something with HTML? In this exercise you will tell a story with three images, figure captions, responsive srcset and meaningful reading order. This is practice, so the goal is to understand your choices rather than just copy a finished design.

You can use a plain text editor and any current browser. Create a separate project folder and save your page as index.html unless the task calls for several pages. You do not need to finish every improvement on the first try. A small valid page is a better starting point than a complicated page that nobody can use.

What you will build


  • Organize the content into a clear page title and sections related to the assignment
  • Implement the feature described in the brief: tell a story with three images, figure captions, responsive srcset and meaningful reading order
  • Each image has an appropriate alt description and a caption
  • srcset supplies candidate files while sizes estimates layout width

Step 1: Plan the page


Before writing code, list the content your visitor needs to understand or complete the task. Mark the page title, navigation, major sections, and interactive parts. If the visitor should fill in a form, decide which fields are truly necessary. If the visitor needs to compare data, identify your row and column headings first.

Step 2: Start with working HTML


The following starter example focuses on the central HTML technique used in this project. Type it into a file, run it in your browser, and then expand it to meet the requirements above. The starter is not presented as the entire finished assignment.

<main>
    <h1>Our garden photo story</h1>
    <figure>
        <img src="garden-480.webp"
             srcset="garden-480.webp 480w, garden-960.webp 960w"
             sizes="(max-width: 600px) 100vw, 600px"
             alt="Sunflowers growing next to a garden path"
             width="960" height="640">
        <figcaption>The garden in summer.</figcaption>
    </figure>
    <figure>
        <img src="pond.webp" loading="lazy"
             alt="A small pond surrounded by reeds"
             width="900" height="600">
        <figcaption>The pond behind the trees.</figcaption>
    </figure>
</main>

Step 3: Understand what the example does


  • Each image has an appropriate alt description and a caption.
  • srcset supplies candidate files while sizes estimates layout width.
  • Images below the fold can use lazy loading, with width and height to avoid shifts.

The image file names are examples; use real files with matching dimensions before testing.

Step 4: Finish the project


  1. Replace the example words and sample data with your own original content that fits the assignment.
  2. Add every section and control described in the project goals. Keep a clear heading order and meaningful labels.
  3. Save your work, open it in a browser, and check actual behavior with both mouse and keyboard.
  4. Check that linked files, images, form destinations, and IDs really exist; fix any broken paths or duplicate identifiers.
  5. If JavaScript, a web server, or another asset is necessary, add it explicitly or explain what remains a demonstration.

How to check your finished work


  • The page clearly communicates its topic without relying on decorative styling.
  • Headings are in a logical order, and important information remains readable at 200% zoom.
  • Links and buttons work with the keyboard and have understandable labels.
  • Images and media have appropriate accessible text alternatives; tabular data has proper header associations.
  • The project-specific requirement is met: Tell a story with three images, figure captions, responsive srcset and meaningful reading order
  • Any HTML validator warnings or browser console problems have been reviewed and fixed.

Common Beginner Mistakes


  • The images must not convey important information only through color.
  • Skipping testing because the page looks correct at one window size.
  • Using placeholder data or missing resources in a project presented as complete.

Key Takeaways


  • The goal is to tell a story with three images, figure captions, responsive srcset and meaningful reading order.
  • Each image has an appropriate alt description and a caption.
  • A successful project is understandable, valid, accessible, and tested—not merely visually attractive.
Share this resourceSend this page to someone who may find it useful.