Got stuck my first hour coding..good grief haha

Tell us what’s happening:
Okay so this is my first day trying to learn code. I have done okay so far but im stuck on this last part. Every time i run the test it says i need to make sure my A element has a closing tag. Are you not supposed to do it like this

Your code so far

  <img src="" 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>
<a href=""<a/>
<a href=anchor>cat photos<a/>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:

1 Like

Ok… lets see how we can solve this please

1 Like

watch your syntax for closing tags, especially where the / goes.


Is the closing tag after the anchor supposed to be a different color?

a (anchor) tags are in open and close pairs… with text with in… like this

<a href="">visit freeCodeCamp</a>
1 Like

When it says Your a element should have the anchor text of "cat photos", that means the text between the <a> and </a> tags, not inside the opening <a> tag like you have tried. As @zapcannon99 pointed out, the closing tag should have the / in front of the tag name and not after it.

Also, you are missing a > on that line I quoted.