Create an a element that links to and has "cat photos" as its anchor text

just can’t get what i am doing wrong
Your code so far

<a href="">cat photos</a href>

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

1 You don’t need an a href to close only an a will do
3 you are missing a closing tag

< a href="#">cat photos< /a> is the solution. href is used to link contents in a webpage and the closing tag for the same shouldn’t contain the href attribute of anchor tag.

cat photos
this is what i got and still not working

please share the code snippet again and remove the white spaces i used in the anchor tag from my previous response. It should work

1 Like

cat photos

html tags when rendered in browser actually take the actual link form removing the tag and making it a link. It would be really helpful if you could share a screenshot of the code or have space right after u open any tag like < a> and closing it as well < /a>

1 Like

@kevion779, its great that you know the answer, but just giving people the answer does not help them solve similar problems in the future, such as when they are working on the projects.

Edit: Ehh, I misread and you only put in a partial solution.

1 Like

@chillz, like @KittyKora said, you have two issues

  1. Your closing tag is not right. You have </a href> when you want </a>
  2. Your url does not match the given one:
1 Like

@JeremyLT What would you suggest then? when you are starting off something that is basic I think it is vital to get the usual schematical type of errors out of the way for a better learning experience. Once you are into the development phase everyone knows that you are on your own.

1 Like

hahaha omg spot on, i am so new to this and i am trying to take as much information as i possibly can. thanks

I hadn’t finished by first cup of coffee and jumped the gun a bit. My brain saw “solution” and somehow thought that you put the full url in there. My bad.

For a handful of issues I often point them out one by one, but do often include examples like you did.

Protip btw, you can prevent the html from rendering if you use ` around inline code or three ticks like this


on the lines before and after blocks of code.

1 Like

LOL :rofl: :rofl: :rofl: :rofl: :rofl: :rofl:

1 Like

@JeremyLT Gotcha! Well, I am relatively new to web-dev, to begin with, HTML errors are the last things we want now. Edit: Acknowledged Have a good day

1 Like

< a href="#">cat photos< /a> SHOULD HELP YOU