Lab 1 · beginner · About ninety minutes

Build a small London guide website

Scope the content, build an accessible static site, check it at every width, and finish with a folder you can drag onto a host.

You finish with

A published one-page neighbourhood guide that works on a phone and can be operated entirely by keyboard.

Before you start

  • A text editor.
  • A free static host account.
  • No coding experience.

Material: Open data and your own writing. Use only images you have the right to publish.

  1. Decide the scope before you write a line

    One neighbourhood. Four sections: what it is, where to eat, what to see, how to get there. Write the actual words in a plain text file first. Placeholder text hides layout problems, which is why this step comes first.

    Checkpoint You have real sentences for all four sections.

  2. Build the structure

    One index.html with header, main and footer. One h1, then h2 per section, in order. No styling yet — you are checking that the document makes sense read top to bottom with no CSS at all.

    Checkpoint Open it in a browser. Unstyled, it still reads as a coherent document.

  3. Add the styling

    One style.css. Set a readable measure, a type scale and your colours. Ask for CSS by describing the effect you want, and ask for an explanation of each rule as you go.

    Checkpoint Contrast passes AA. Text is at least 16px on mobile.

  4. Images with alt text

    Add photographs you have the right to use. Every image gets alt text describing what it shows — concise and factual, not poetic. Decorative images get an empty alt attribute.

    Checkpoint Every img has an alt attribute and explicit width and height.

  5. Test at 320 pixels

    Narrow the browser to 320px wide. Nothing should overflow sideways. Fix with relative units and wrapping rather than by hiding content.

    Checkpoint No horizontal scrollbar at 320px.

  6. Keyboard pass

    Put the mouse down. Tab through the page. Every link must be reachable and must show a visible focus ring.

    Checkpoint You can reach and activate everything with the keyboard, and always see where you are.

  7. Deploy

    Drag the folder onto your static host. Open the address on your phone.

    Checkpoint It loads for someone who is not you.

The build request
Write index.html and style.css for a single-page guide to one London neighbourhood.

Requirements:
- semantic HTML5, one h1, correct heading order
- readable and non-overflowing at 320px
- text contrast meeting WCAG AA
- visible :focus-visible styles on all interactive elements
- explicit width and height on images
- no framework, no build step, no external dependencies

Use the content I paste below as the actual copy. Do not invent facts about the area.

After the code, explain what each CSS rule does and tell me which line controls the space between sections.

Content:
---
[paste your four sections]

What finished looks like

A folder containing index.html, style.css and an images folder. Roughly 120 lines of HTML and 150 of CSS. It should look plain and work perfectly rather than look impressive and break at 400px.

Test criteria

  • No horizontal overflow at 320, 375 and 768 pixels.
  • Full keyboard operation with visible focus.
  • All images carry alt text and dimensions.
  • Heading levels descend without skipping.
  • The deployed address loads on a phone.

If it goes wrong

Images do not appear after deploying.
Check the case of the filename. Local filesystems are often case-insensitive; hosts usually are not.
Layout collapses on mobile.
Confirm the viewport meta tag is present, then replace fixed pixel widths with max-width and percentages.
Focus ring invisible.
Something has set outline: none. Remove it and style :focus-visible instead.

Privacy and safety

Everything in the folder becomes public. Check for drafts, notes and keys before deploying.

Sources3 referenced
  1. HTML: structuring the web

    MDN Web Docs · reference documentation · link checked 2026-09-06

  2. Web Content Accessibility Guidelines 2.2

    W3C · standard · link checked 2026-09-06

  3. Deploy a site — Netlify documentation

    Netlify · official product documentation · link checked 2026-09-06

Links are checked at build time. If one has moved, tell us.

Read alongside

Next lab: Organise a folder of files safely with Claude Cowork