Step 28 HTML cat page

Hi guys - I keep getting this message: Hint

You should have a third img element nested in the figure element.

But it looks fine to me? any advice?

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg.">

    </figure>
1 Like

Can I see all of the code for the <figure> element please?

  <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg.">
        </figure>

Image is unavailable, can you send the code instead?

I’m not sure why it isn’t showing up lol. I will type it:

<figure>
            <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg.">

</figure>

it still doesn’t seem to be showing up. But above the code in my original post there is a < figure > - no spaces

Oh, there is a “.” after cats.jpg. Remove that, and it should all be fine.

for sure this period shouldn’t be here

I took out the . and it worked. So weird as the instruction had a . at the end after jpg. Thank you!

1 Like

I’ve edited your post 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 (’).

1 Like

I am pretty sure the dot is outside the text formatted as code

 <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  

Thank you for this! Will make sure I use it in future

1 Like

If it helped, would you please mark it as a a solution? Thanks.

It is, but it’s always a bit dangerous to end inline code blocks with punctuation.

I usually try not to put the code block at the end of a sentence, or sometimes I will just forgo the end of sentence punctuation, even if it’s wrong.

But I guess it’s all part of the learning experience.

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