Learn CSS Flexbox by Building a Photo Gallery - Step 21

in challenge 21, the alt attribute leading into difficult, nine alt attributes required nine different words limited to 5 letters, and I could not solve it.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

in challenge 21, the alt attribute leading into difficult, nine alt attributes required nine different words limited to 5 words, and I could not solve it.

Have you tried to add the alt attribute?
I don’t see that you have tried in your code.

Please try and show us the code after you have modified it.

<img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg" alt="cute">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg" alt="lovely">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg" alt="lazy">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg" alt="active">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/5.jpg" alt="cats">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/6.jpg" alt="fairy">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/7.jpg" alt="awesome">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/8.jpg" alt="beauty">
      <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/9.jpg" alt="playing">

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

The alt value is blank in your code.

Please add a few words inside (any words you like)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.