AMDE 155 · INTRODUCTION TO WEB DESIGN · WEEK 04
Make It Visual
Images can communicate ideas, establish a mood, tell a story, and give a website its personality. This week, we will learn how to bring visual content into our pages while making thoughtful choices about accessibility, captions, and image quality.
01 / THE BIG IDEA
Images are part of the message
Think about the last website that caught your attention. Was it the photography, the illustrations, the colors, or the way images were arranged? Visual content can influence how we understand a subject before we read a single paragraph.
As designers, we need to consider more than whether an image looks good. We also need to think about its purpose, quality, file size, accessibility, and relationship to the surrounding content.
Communicate
Use images to explain an idea, document a process, or tell a story.
Support
Choose visuals that connect meaningfully to the content rather than adding decoration without purpose.
Include
Provide appropriate alternative text and captions so visitors can understand the visual content.
02 / YOUR FIRST IMAGE
Meet the image element
HTML uses the <img> element to display an image. Unlike a paragraph or heading, it does not have a separate closing tag.
<img
src="https://example.com/my-image.jpg"
alt="A red bicycle leaning against a brick wall"
>
Two attributes are especially important:
srcspecifies the image source—the location of the image file.altprovides a text alternative describing the image’s relevant content or purpose.
03 / TRY IT IN CODEPEN
Add a real image to your page
For this activity, you can use an image hosted online or upload an image through CodePen’s supported asset features. Make sure you have permission to use the image and that the source is accessible.
<h1>A Place That Inspires Me</h1>
<p>This place inspires my creative work.</p>
<img
src="PASTE-YOUR-IMAGE-URL-HERE"
alt="Describe the important details of your image"
>
Follow these steps
- Choose an image related to your page topic.
- Find a usable image URL or use an image asset feature available to you.
- Replace the placeholder in the
srcattribute. - Replace the sample alt text with an accurate description of your image.
- Check the CodePen preview to confirm that the image appears.
04 / ALTERNATIVE TEXT
Write useful alt text
Alternative text helps people who use screen readers understand an image’s relevant information. It can also appear when an image cannot load.
The best alt text depends on the image’s purpose and context. Describe what matters to the surrounding content instead of listing every visible detail.
Too vague
alt="picture"
This does not tell the visitor anything useful.
More informative
alt="A cyclist riding along a coastal road"
This communicates the main subject and action.
Consider the context
If the image documents a particular artwork or event, include the relevant identifying information when it helps explain the content.
Practice: Improve the alt text
Imagine your page features a photograph of a person painting a large blue mural on a brick wall.
alt="photo"
alt="An artist painting a blue mural on a brick wall"
05 / IMAGES WITH CAPTIONS
Give the image context
A caption is visible text that appears alongside an image. It can identify the artist, explain what is happening, provide a date, or add context that is not included in the image itself.
HTML provides <figure> and <figcaption> to group an image with its caption.
<figure>
<img
src="artwork.jpg"
alt="A layered abstract painting in blue and orange"
>
<figcaption>
Abstract study, acrylic and mixed media, 2025.
</figcaption>
</figure>
This structure is especially useful for art portfolios, photography projects, editorial layouts, and visual research pages.
06 / CONTROL IMAGE SIZE
Let CSS handle presentation
HTML describes the content. CSS controls how that content is displayed. For now, we can use a small CSS rule to help images fit their containers.
img {
max-width: 100%;
height: auto;
}
This rule prevents an image from becoming wider than its available container while allowing its height to scale proportionally.
Try changing the image width
Once the image is working, try this additional rule:
img {
width: 70%;
height: auto;
}
Change 70% to 50% and then 100%. Observe how the image changes size. We will explore more precise control over layout and spacing in future lessons.
height: auto preserves its proportions in this example.
07 / IMAGE QUALITY & RESPONSIBLE USE
Choose images thoughtfully
Large images can slow down a page. Small images can look blurry when enlarged. The goal is to select an appropriate image and prepare it for the way it will be displayed.
Resolution
Choose an image with enough detail for its intended display size. Avoid enlarging tiny thumbnails.
File size
Resize oversized images and use appropriate formats to help pages load efficiently.
Permissions
Use your own work, properly licensed images, or resources you have permission to use. Provide attribution when required.
08 / SYNCHRONOUS CLASS ACTIVITY
Build a visual story
During our live session, we will turn a simple text page into a small visual story. You will choose a subject, add an image, write alt text, and create a caption.
In class
- Open your existing CodePen project from Week 3 or start a new pen.
- Choose an image related to your subject.
- Add the image using
<img>, including bothsrcandalt. - Wrap the image in a
<figure>element. - Add a caption using
<figcaption>. - Add the responsive image CSS rule.
- Test the image and check the page at different browser widths.
09 / INDEPENDENT PROJECT
Turn your mini-site into a visual experience
Continue developing the page you started in Week 3. Add visual content that supports your subject and gives visitors more information about your chosen topic.
Select your images
Choose at least two relevant images that support the subject of your page.
Add context
Write meaningful alt text and add at least one visible caption.
Test the page
Check image loading, proportions, links, and content organization.
Project requirements
- Continue using the HTML page from Week 3.
- Include at least two relevant images.
- Provide appropriate alt text for each meaningful image.
- Include at least one image with a caption using
<figure>and<figcaption>. - Keep your existing headings, sections, and navigation links working.
- Use the responsive image CSS rule provided in the lesson.
- Use images responsibly and follow any applicable licensing or attribution requirements.
- Submit your working CodePen link through D2L.
10 / SUBMISSION & REFLECTION
Look at your page from a visitor’s perspective
Before submitting, check that your images load, your links still work, and your captions make sense. Then consider the experience of someone visiting your page for the first time.
Reflection questions
- How did your image choices change the way your page communicates its subject?
- What is the difference between alt text and a visible caption?
- What did you learn about choosing and displaying images on the web?
11 / QUICK REFERENCE
Tags and CSS from this week
<img>
Embeds an image in the page.
src
Specifies the image source.
alt
Provides a text alternative for the image.
<figure>
Groups an image or other self-contained visual content.
<figcaption>
Provides a caption for a figure.
max-width: 100%
Helps an image fit within its available container.
12 / LOOKING AHEAD
Next week: Color, CSS & visual identity
We have built structure, connected sections, and introduced images. Next week, we will begin exploring CSS as a design tool, using color and basic styling to establish a visual identity.
As you browse websites this week, notice how images are cropped, positioned, captioned, and combined with text. Consider what those choices communicate about the brand, artist, or organization behind the site.