Tell us what’s happening:
Describe your issue in detail here.
Hello, I have an issue with the challenge where I need to turn the text “cute cats” into an anchor element that links to an image. The challenge states that the text “cute cats” should only appear once in the code, but it seems like I’m using “cute cats” twice, which is not allowed. However, I can’t modify the other instance where “cute cats” appears because it has to stay exactly as it is.
What can I do to resolve this issue so that the code works without the error?
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p> <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> Everyone loves cute cats online!</p>
<p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your mobile information:
SNE-LX1 - Android 10 - Android SDK 29
Challenge: Learn HTML by Building a Cat Photo App - Step 14
You appear to have created this post without editing the template. Please edit your post to 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!
“There should only be one instance of the phrase cute cats in your code.”
I have placed the link around the words “cute cats”, but I am still getting this error message even though the rest of the sentence (“Everyone loves cute cats online!”) is outside the link. Does anyone have suggestions as to why I keep getting this message?
I feel like my code is correct, as mentioned in earlier responses, but I may not see something.
You have to use your anchor tags around “cute cats” inside “Everyone loves cute cats online!”. There is already one instance of “cute cats”, so you don’t need to add another one. The step wants you to use the anchor element inside the p element around those words.
I hope this helps!