Hi, I have an issue on this challenge, it is asked to have only one (a) element and I did as the instruction says but still doesn’t let me pass to the next step.
Here is my code :
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
<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>
Here is the task for your reference :
Your code should only contain one anchor (a) element. Remove any extra anchor elements.
Hi, I have an issue on this challenge, it is asked to have only one (a) element and I did as the instruction says but still doesn’t let me pass to the next step.
Here is my code :
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
<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>
Here is the task for your reference :
Your code should only contain one anchor (a) element. Remove any extra anchor elements.
Ya, the hint is not as helpful as it could be. The anchor element needs both an opening and closing tag because you can put stuff inside of it. Look closely at your link. Do you have both an opening and closing a tag?
Pro tip: if a comment on your post solved your problem, you can click the “solution” button at the end next to the reactions to let everyone know the user solved your problem