Building a Photo Gallery - Step 6 Cannot find a typo

Please help find the error in my code. I keep getting the message " Your fourth img element should have https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg set as the src attribute value." but I cannot find a discrepancy in my code (e.g “scr vs src” “-jpg vs .jpg” or no closer >?)

Your code so far

<!-- file: index.html -->
<div class="gallery">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg">

<!-- User Editable Region -->

<div class="gallery">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/5.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/6.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/7.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/8.jpg">
  <img src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/9.jpg">
</div>

<!-- User Editable Region -->

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Challenge: Learn CSS Flexbox by Building a Photo Gallery - Step 6

Link to the challenge:

If I look at all of the code showing in index.html, it seems you have and extra <div class="gallery"> and 3 extra img elements that should not be there.

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