Need help with "a" element - Basic HTML

Need help with "a" element - Basic HTML
0.0 0

#1

cat photos

The link for “cat photos” appears but it says, “You need an a element that links to http://freecatphotoapp.com


#2

carefully check your code to make sure that you didn’t mistype the link url.

you can copy your code to the forum to show us if you are still having trouble.


#3

The url link is spelled correctly and the anchor text of “cat photos” is active but it still says I’m missing an “a” element.

CatPhotoApp

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

cat photos

Thank you so much for the speedy reply!!!


#4

Is there a way I could send you the code text without it forming into the product of the code itself?


#5

Try formatting it as code in the reply. `example`


#8

to format the code , insert it in between 3 backticks on a separate line above and below the code like this:

```
put code here
```


#10
<a href ="https://freecatphotoapp.com">cat photos</a>

#11

you’re getting the hang of it.

please post all the code though and a link to the challenge you are tyring to pass.


#12

ps . i believe it should be “http” not “https”


#13

Thank you!

https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements/

<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>
  <a href ="https://freecatphotoapp.com">cat photos</a>
</main>

#14

It worked!!! You are the best! Thank you! This is all so exciting.