Hello!
Please help me, ‘Learn HTML by Building a Cat Photo App’, Step 12.
If I write
Click here to view more cat photos.
, the site gives an error ‘The link’s text should be “cat photos”. You have either omitted the text or have a typo.’But if I write ‘cat photos’ instead of ‘Click here to view more cat photos.’ -
Hint:
After nesting the anchor (a) element, the only p element content visible in the browser should be “Click here to view more cat photos”. Double check the text, spacing, or punctuation of both the p and nested anchor element.
I don’t understand, how can I put both massages at the same time?
I also tried
Click here to view more cat photos. cat photos
‘Click here to view more cat photos.’ is inside p element, ‘cat photos’ is inside a element, but the problem occures anyway…
‘After nesting the anchor (a) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.’
What do I do wrong? Help!
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos. <a href="https://freecatphotoapp.com">cat photos</a></p>
<a href="https://freecatphotoapp.com">link to cat pictures</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/107.0.0.0 Safari/537.36 OPR/93.0.0.0
Challenge: Learn HTML by Building a Cat Photo App - Step 12
Link to the challenge: