Module 12: Webpage Content

Lesson 2 of 5 · 15–25 minutes

Images

🏠The everyday picture

A photo in a newspaper has a caption underneath. If the photo fails to print, the caption still tells you what it showed.

📘What it really is

🖱️Try it

Put a photo in my-first-site/images/, resize and compress it with squoosh.app, and add it to your introduction page with a meaningful alt. Check its file size in your file manager before and after.

✅Quick check

What alt would you write for a decorative line between two sections?

Show the answer

An empty one, alt="", so screen readers skip it.

Your homepage takes 10 seconds to load on a phone. What's the first thing to check?

Show the answer

Image sizes. Large, uncompressed photos are the most common cause of slow pages.

← PreviousLinks
ProLearners Assist