Links, images, lists and tables

The elements that make a page more than plain text: connections to other pages, pictures with text alternatives, and structured lists and data.

About 5 hours of study

Learning objectives

Lessons

  1. 1

    Links and how pages connect

    The link is what makes the web a web. Write absolute, relative and same-page links, open new tabs safely, and write link text that makes sense.

  2. 2

    Images and why alt text matters

    Add images with img, write alt text that replaces the picture, stop pages jumping with width and height, and pick the right file format.

  3. 3

    Lists for steps, items and definitions

    Group things with unordered, ordered and description lists, nest them correctly, and see why navigation menus are usually lists underneath.

  4. 4

    Tables for data that has rows and columns

    Build real data tables with headers, captions and merged cells, mark them up so a screen reader can follow them, and learn when not to use a table.

Module practice

Module quiz

1. An element has id="faq". How do you link to it from the same page?
2. Why use relative links within your own site?
3. An image is a button that opens the search page. What should its alt say?
4. What goes directly inside a ul?
5. When should you not use a table?
6. A row has one cell with rowspan="2" in a 3-column table. How many cells does the next row need?

‹ Your first web pagesForms and user input ›