Tell us what’s happening:
I put a comment in the code. Can’t figure out what i’m doing wrong with the a element. Help says Href has lost it’s value.
Your code so far
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<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> <!-- Can't figure out what i'm missing with the a element? Does the first <a> need to be opened or closed? the examples show both versions. Help keeps saying the Href has no value. -->
<a href="https://freecatphotoapp.com">cat photos</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 12
You added an extra “cat photos” to the sentence in the p element. You don’t want to add any extra text. You want to turn the words “cat photos” that are already there into a link.
Look in the preview pane? Do you see two “cat photos” at the end of the sentence? One isn’t a link and one is. You only want one “cat photos” at the end of the sentence and it should be a link.
In the text of your p element, turn the words cat photos into a link
now do you see what needs to be done and how you can “address” that in your code? if not feel free to share your attempted code and further questions, happy learning
I have been at this for days and can’t figure it out. it’s been weeks and i can only make it to step 12. No I do not understand. There is no actual help in the hints