Can't pass this lesson

Tell us what’s happening:
I can’t pass this lesson no matter what I do
Your code so far


<h2>CatPhotoApp</h2>
<main>
<a href="http://freecatphotoapp.com">cat photos</a>

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

<!-- 
Create an a element that links to http://freecatphotoapp.com and has "cat photos" as its anchor text. 
-->
  **Your browser information:**

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

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

1 Like

Take a very close look at the error message you are getting:

" You need an a element that links to https://freecatphotoapp.com"

You obviously have an a element so I would look at what it links to. The url must be exactly the same as what the instructions want.

1 Like

What am I supposed to put in?

1 Like

What the instructions ask you to use as the URL to link to. I’m am trying to give you a hint without just telling you because part of being a good programmer is attention to very small details. You have the <a> tag set up correctly. It is just not linking to the correct URL. Look closely at what you currently have for the value of the href attribute. It is not quite the same as what the instructions are asking for.

1 Like

this is what I have what’s wrong whith it

<h2>CatPhotoApp</h2>

<main>

<a href=http://freecatphotoapp.com>Cat Photos</a>

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

<!-- 

Create an a element that links to http://freecatphotoapp.com and has "cat photos" as its anchor text. 

-->
1 Like

Sorry, don’t mean to be rude, but I feel like you are not reading what I am typing.

Look at what you have for the href attribute and compare it to what the instructions are asking you to have for the href attribute.

2 Likes

I copy and pasted what was in the video help and it still did not work

1 Like

I think this will be my last comment on the matter and someone else can jump in if they want.

The HTML you pasted at the top is perfect except for one small issue. Again, look at the value you have href set to and compare that to what the instructions are asking you to set it to.

Good luck.

2 Likes

I wrote exactly what they wanted for the href and it still did not work I put <a href="http://freecodecamp.org">this links to freecodecamp.org</a>

it will not let me post the code to show you what I’m putting

I don’t need to see your new code. I already explained that the HTML you initially posted at the top is perfect except for one small issue with the href value. So you just need to use that exact code and fix the issue.

2 Likes

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

2 Likes
<a href="http://freecodecamp.org">this links to freecodecamp.org</a>

I want you to pause and really look carefully at your code here.

Now carefully look at the lesson url.

They are not the same.

Are you unsure on where to find the correct URL from the lesson?

Also, you changed the anchor text.
cat photos was correct before but now you changed it.
Go back to the original anchor text.

Make sense?

2 Likes

Instructions from FCC lesson
Create an a element that links to https://freecatphotoapp.com and has “cat photos” as its anchor text.

1 Like

like this where do I put the cat photos part?

<a href="http://freecodecamp.org">this links to freecatphotoapp.com</a>
1 Like

this is what I have

<h2>CatPhotoApp</h2>
<main>
<a href="http://freecodecamp.org">this links to freecatphotoapp.com</a>
  <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>

<!-- 
Create an a element that links to http://freecatphotoapp.com and has "cat photos" as its anchor text. 
-->

You need to delete this part completely and write it just like you did before

Your url is still wrong though

Incorrect:
http://freecodecamp.org
Correct:
https://freecatphotoapp.com

Part of programming is paying attention to detail.
I need you to look letter by letter and notice that yours looks very different.

1 Like

Is it the s? I don’t have an s

1 Like

That’s one problem, but keep looking.

It is always best to just copy and paste instead of manually type it out.
(ctrl c and ctrl v)

1 Like