Help, it says my HTML code is wrong but I don't think it is

What am I missing?

Please post your actual code and a link to the Step instead of a screenshot.

Sure thing. My code:

  <pre><figcaption>Cats <em>hate</em> other cats.</figcaption></pre>

Link to step: https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-32

ETA: how do I make the actual code show up here? I’m a total newbie obviously.

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 (').

1 Like

Thanks so much. So do you know why it’s telling me my strong element should have an opening tag? I’m pretty sure it does have one…

I don’t see a strong element. Only a em element.

Oh my goodness, you’re right. I did the em element because that’s what a prior step had asked for to emphasize a different part of text. Total brain fart. Thank you so much!

2 Likes