FSM Full Stack Masterclass
Platform under construction
HTML course badge

HTML Links & Media

Intermediate

HTML Images

Learn HTML Images with practical HTML examples for navigation, images, alt text, media behavior, metadata, accessibility, SEO and live practice.

Live code lab

Change the code and run the example.

Edit the HTML or CSS, then use Run to refresh the preview. The preview is isolated, so links and forms stay inside this practice area.

Mini assignment

Try this now.

  • Change the src to "cat.jpg" and run the preview.
  • Rewrite the alt text for the image you expected to load.
  • Remove width and height once, then add them back.

Practice assignment

Do this before moving to the next lesson.

  1. Write three image tags: meaningful, decorative and lazy-loaded.
  2. Explain which alt text belongs on each one.
  3. Check whether every meaningful image has width, height and useful alt text.

Try it yourself

Build a clean image card

Live preview

Self-check

Before you continue, prove that you own this lesson.

Intermediate

Do not only read this page. Answer these questions out loud or write the answers in your own notes. If one answer feels vague, revisit the examples before moving on.

  1. Can you decide whether an image is content or decoration?
  2. Can you write alt text that explains meaning instead of the file name?
  3. Can you explain why width and height help page stability?
  4. Can you choose between img, picture and CSS background for a real use case?
  5. Can you spot when an image should be lazy-loaded?