Link to External Pages with Anchor Elements help

Link to External Pages with Anchor Elements help
0.0 0

#1

Tell us what’s happening:

saying I need an a element that links to http://freecatphotoapp.com

&

Make sure your a element has a closing tag.

not sure where I’m going wrong on this :confused:

Your code so far

<a http://freecatphotoapp.com> "cat photos"</a>

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;>Cat Photos</a>
    
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">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 class="red-text">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:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299.

Link to the challenge:


#2

You’ve just got the form of the anchor tag wrong. For example, if I wanted to link to google, I would do:

<a href="www.google.com">My Google Link!<a/>

#3

so is it

<a href=http://www.freecatphotoapp.com/>cat photos</a>

?


#4

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#5
<a href=http://www.freecatphotoapp.com/>

cat photos</a>

?


#6

The url should be in quotes.


#7

ahhh…ok let me give that shot and see if that works


#10

passed it but needed an anchor before “cat photos” as well…wonder why it didn’t show that in the example it provided.


#11

I’m not sure what you mean. I just did it again and it was the standard format:

<a href="url">label</a>