sa1rex
October 29, 2022, 2:52pm
1
I have a problem. can’t pass the test.
I can’t figure out where is my mistake
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
<a href="freecatphotoapp.com"></a>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 10
Link to the challenge:
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
1 Like
It would be useful to know what the challenge is asking you to do.
1 Like
sa1rex
October 29, 2022, 3:14pm
4
Step 10
You can link to another page with the anchor (a
) element. For example, <a href='https://freecodecamp.org'></a>
would link to freecodecamp.org
.
Add an anchor element after the paragraph that links to https://freecatphotoapp.com
. At this point, the link won’t show up in the preview.
Ok. You see it is teaching you how to link to another page using the anchor <a>
element. So, below the <p>
line, add an anchor element and make sure you give it an attribute of href that has a value of the url you want to link to.
1 Like
sa1rex
October 29, 2022, 3:27pm
6
So I added the line
<a href="freecatphotoapp.com"></a>
You should copy the whole URL.
1 Like
sa1rex
October 29, 2022, 3:31pm
8
I did, but still the error
<a href="https://freecatphotoapp.com"></a>
In addition, description suggests a single quote in the description, which confuses me even more.
Please post actual code instead of pictures.
1 Like
This passes for me, I’m on the lesson page. Maybe copy that line, then refresh, and paste it.
1 Like
sa1rex
October 29, 2022, 3:33pm
11
My code that doesn’t work
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
<a href="https://freecatphotoapp.com"></a>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Reset the lesson and write it again. It will pass.
1 Like
sa1rex
October 29, 2022, 3:35pm
13
What browser are you using?
Is your browser up to date?
Are you running any extensions?
1 Like
sa1rex
October 29, 2022, 3:41pm
15
sa1rex:
Launched Chrome without extensions, the test passed!
1 Like
system
Closed
April 30, 2023, 3:41am
16
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.