All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Frontend Engineering · HTML & CSS · Intermediate
HTML & CSS practice: Alt Text Matters
Bun Maska Combo needs a proper photo. And someone forgot something important. The Bun Maska Combo photo is a postage stamp. Make it 240px wide. And give…
The problem
- The Bun Maska Combo photo is a postage stamp. Make it 240px wide.
- And give it rounded corners like a modern app.
- Must pass: Photo is at least 240px wide.
- Must pass: Photo has rounded corners.
You'll use: HTML · CSS · Accessibility · Responsive design · Forms
Solve it (expert level)3–6 min · You write HTML & CSS
Show a hint
.photo { width: 240px; }
What this teaches (spoiler)
Images need alt text that describes them, so screen-reader users get the same information.