I cant pass the element <a>

i cant pass because i dont have idea what is the problem.

this is my code

      <h2>CatPhotoApp</h2>
<main>



  <img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>`
<a><a href="https://www.freecatphotoapp.com">cat photos</a>

<h2>CatPhotoApp</h2>
<main>



<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>`
<a><a href="https://www.freecatphotoapp.com">cat photos</a>

this is my whatsapp: 502 37332000

I think there is a error on your code. There is a backtick ` after your main end tag. And your last anchor tag has 2 a start tags. You should have only a start tag and an end tag.
That must be the reason you aren’t passing the test.

you forgot that there’s no target="_blank" attribute in your a element on back.

and that a element needs to be nested by the main element.

main
a href=“link” target="_blank" text /a
/main

I’ve edited your post for readability. 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 (’).

what do u mean by target=“_blank”

what’s the blank suppose to be?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.