Got stuck my first hour coding..good grief haha

Got stuck my first hour coding..good grief haha
0

#1

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


<h2>CatPhotoApp</h2>
<main>
  
  
  
  <img src="https://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 href="http://freecatphotoapp.com"<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:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements/


#2

Ok… lets see how we can solve this please


#4

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


#5

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


#6

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

<a href="http://www.fcc.com">visit freeCodeCamp</a>

#7

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.


#8

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