Tell us what’s happening:
Describe your issue in detail here.
I’m not exactly sure what I’m doing wrong. I’ve tried refreshing in case it’s a bug but that didn’t work either. It says I need only one opening anchor tag, but I still don’t understand.
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecat photoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Challenge: Step 14
Link to the challenge:
It says you only need one anchor tag. That means <a <----- you only need one of those
I’m not sure where the second a is.
and if thats too confusing just restart the step, and remove the <a…
thats forsure 100% the problem tho.
I got rid of the a but now it’s saying my a element should have an opening tag
Okay . I knew this was going to happen. My advice is to restart the step. And follow the instructions, HOWEVER. Never at any point should you have two <a.> tags
I’m not even sure where the first a is
I would reset the lesson.
This lesson wants you to place the img element inside anchor tags.
In front of the img element place an opening anchor tag with the correct href value.
This is incorrect
Make sure to use the correct href value from the directions here:
https://freecatphotoapp.com as the anchor’s
href attribute value.
After the img element place a closing anchor tag
When you do that, then the test will pass
Like i said, I would restart the step… and just make sure when you enter your code this time, that you don’t accidentally add another <a.> tag
hope this helped. your code is correct. you just have that extra <a.> you have to delete it
It is still saying I need an opening a.
Please post your new code so we can see what you have tried.
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.
this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
<href= “https://freecatphotoapp.com”/><img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“A cute orange cat lying on its back.”>
I see a few issues here.
Make sure to turn off smart quotes on your device.
Programming uses straight quotes like these
You can google how to turn off smart quotes on your device
This is not valid html
href is not a valid html element.
The challenge wants you to use anchor tags.
Remember that anchor tags have an opening and closing tag.
Right now you are missing a closing tag.
Here is the basic syntax for opening and closing tags
Opening tag syntax
I will also link the MDN docs for anchor elements as well as this article on how to nest images inside anchor tags
The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
Once you clean up those syntax issues, then the test will pass.
Hope that helps!
Whenever I add the a it says I’m not supposed to have it
It says that because you are missing the closing anchor tag.
This is just a situation of the error message not being 100% helpful.
But it is not easy create error message to account for every user situation.
The test is confused because you don’t have a valid anchor element.
Once you fix that, then the error message will go away.
Hope that clears it up!
It’s still says I have an extra opening a tag
If you have already made changes to your code please post it here for us to see
Can I post a screenshot this time🥲