My confusion is unmeasurable

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**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
    <a href="https://freecat"><img src="" 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

1 Like

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.

1 Like

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

1 Like

I’m not even sure where the first a is

1 Like

HI @Alphanovena !

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:
Use 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

1 Like

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

1 Like

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.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like
<href= “”/><img src=” 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


Closing tag


I will also link the MDN docs for anchor elements as well as this article on how to nest images inside anchor tags

Once you clean up those syntax issues, then the test will pass.

Hope that helps!

1 Like

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!

1 Like

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

1 Like

Can I post a screenshot this time🥲