Sub topic 1
What the photo is for
A photo on a web page is a working part of the page. Before you pick or crop anything, decide what job it does. That decision drives every later choice in this tutorial: which photo to select, how to crop it, and how large a file to send.
Prerequisites
This chapter assumes you know the following:
- Basic HTML, including the
imgelement and its attributes. - Basic CSS, including selectors,
width, andheight. - Responsive layouts and breakpoints, meaning the screen widths where a layout changes.
Why purpose comes first
Many pages use photos as decoration. A visitor sees a smiling stock photo and learns nothing. A photo with a clear job helps the visitor understand, trust, or act.
Ask one question before you choose an image: what should the visitor think, feel, or do after seeing it? If you cannot answer, the photo is probably filler. Filler costs load time and attention, so remove it or replace it.
Common jobs a photo can do
Most photos on websites fall into a few roles. Each role puts different demands on the image.
| Role | What it does | What it needs |
|---|---|---|
| Hero | Sets the tone at the top of a page | A strong subject, room for a headline, a wide crop |
| Product | Shows what is for sale | Sharp detail, a plain background, consistent framing |
| Evidence | Proves a claim, such as a finished project | Honest, unretouched content |
| People | Builds trust by showing who is behind the work | Real people, natural expressions, consent |
| Illustration of an idea | Makes an abstract topic concrete | A clear, specific subject |
| Atmosphere | Adds mood around the text | Low visual noise so text stays readable |
A single photo can serve two roles, but one should lead. A bakery hero photo might set the mood and also show the product. If the two roles conflict, choose the one that matches the page goal.
Tie the photo to the page goal
Start with the page, not the photo library. Write the page goal in one sentence, for example: "Get visitors to book a tasting." Then test each candidate photo against it.
- State the page goal.
- Name the message the photo should support.
- List what the photo must show to carry that message.
- Note where it will appear and how large it will be.
Step 4 matters because a photo that works at full width on a desktop may be unreadable as a small thumbnail. Later chapters cover crops and sizes in detail. For now, note the placement so you can plan for it.
Common errors
- Choosing by taste alone. A beautiful photo can still miss the page goal.
- Using generic stock imagery. Visitors tend to ignore images that could belong to any site.
- Overloading one photo. A busy image that tries to show everything shows nothing clearly.
- Ignoring placement. A photo chosen without knowing its size or its overlaid text often needs a rework later.
Exercise
Exercise
A landing page for a pottery class has the goal "Get visitors to sign up for a beginner workshop." You are choosing between a polished stock photo of a smiling woman at a laptop and a photo of a real beginner holding a first bowl at the studio. Which should you choose, and what role does it play?
Show answer
Choose the photo of the real beginner with the bowl. It plays the evidence and people roles: it shows what a visitor can achieve and builds trust. The stock photo says nothing specific about the workshop, so it does not support the page goal.