Your anchor (a) element should have an opening tag. Opening tags have this syntax: <elementName>

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more 
        <a target _blank (ahref="https://freecatphotoapp.com">cat photos</a>.</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>

hi all i’m stuck at this part of the challenge, and have been for a while i just cant seem to get it right. i don’t understand what the hint is telling me to do. and cannot figure it out for the life in me. any help would be greatly appreciated.

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15

Challenge: Step 13

Link to the challenge:

So, the a’s opening tag in the original code was this… it seems like you’ve edited it in yours but I’d start with the original:

<a href="https://freecatphotoapp.com">

What it’s asking is for you to add a new “attribute” called target in that tag, and the value should be _blank. To give you an idea of what that should look like… it should have the same structure as the other “attribute” href, that has a value of https://freecatphotoapp.com. Also below a <div> element with multiple attributes as a reference of what multiple attributes might look like:

<div id="mydiv" class="div-class" onclick="runmyfunction()">

2 Likes

I was just stuck on this one. The tip that helped me was that it told me the <img line goes within the <a and not the other way round

1 Like

Can you share your code so that i can help you

1 Like

Thanks a lot for your help I’ve managed to figure it out :slight_smile:

I am also stuck on this one. How did you manage to do it?

Nvm I figured it out thanks a lot

1 Like

hello, if possible can you send the solution

keep trying you’ll get there. it was quite simple in the end. also google helps too. loads of good information there.

HI All,

I too am still struggling with this. I have tried all kinds of things and looked at this in other HTML Editors and no errors there. I cannot continue with this if I cannot get passed this issue. I keep getting

Test

Sorry, your code does not pass. Don’t give up.

Hint

Your anchor (a) element should have a closing tag. Closing tags have a / just after the < character.

Here is the code:

CatPhotoApp

Cat Photos

Click here to view more

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"

It seems really stupid

Cat Photos

Click here to view more cat photos.

A cute orange cat lying on its back.

Same here. I have been stuck on this level for 5 days. Please any help will be much appreciated. Thank you.

Hi, if you’ve checked online for help with this lesson, searched the forum and still can’t solve the lesson please make your own new topic post. It is easier to help if you do this.

You can do this by pressing ‘new topic’ on the front page of the forum, or ‘ask for help’ on the lesson you are stuck on.

[Answer Removed by Mods]

2 Likes

I wrote the same code but i kept on inserting it in the previous line of code and it kept showing me error ! lmao ! thanks man you’re a life saver !

Can you share the code

Hi! Welcome to the forum!

We don’t allow sharing of coding answers on the forum as it doesn’t help learning.

If you are stuck on a challenge, please use the ask for help button to create your own topic. Thank you.

An anchor is a sentence that appears at the start and/or end of a hypertext link. the text that appears between the opening and closing tags.You can also visit this site https://apkstates.com/ for more information.

Thank you, this helped me. I’m having trouble with these lessons bc there’s not much explanation. “Answers are not allowed” is making it 100x more difficult and has made my daughter quit these lessons :frowning:

1 Like

Ajudou muito, obrigada