Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"> </a>cat photos.</p>
</main>
</body>
</html>
Your mobile information:
Infinix X6516 - Android 12 - Android SDK 31
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
system
September 16, 2024, 8:21am
2
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!
I’m stuck at this point. “Your anchor (a) element should have an opening tag. Opening tags have this syntax: ."
Hello there @Joshuaeniola1010 . I can see one or more things that is not mentioned in the instruction.
The instruction simply asks you to:
Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com
as the anchor’s href
attribute value.
If I see your code
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"> </a>cat photos.</p>
There is no opening anchor tag.
The instruction doesn’t asks you add text cat photos
and </p>
tag.
The instructions simply asks you to add anchor tag around the img
tag without any text.
I hope my reply will help you to pass the test. Let me know, thanks.
1 Like