Still trying to resolve step 12

**Tell us what’s happening:**Still stuck on step 12. My anchor (a)element is nested between my P element. When I check my code it keeps telling me that I should only have one anchor(a)element and to remove any extra anchor elements. Where do I have extra anchor elements or what needs to be removed.
Describe your issue in detail here.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more<a href=""> photos.<a href=">cat photos</a></p>
    <img src="" alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (iPad; CPU OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/99.0.4844.59 Mobile/15E148 Safari/604.1

Challenge: Step 12

Link to the challenge:

1 Like

Hello @Gio7, I see that you have written the opening tag twice, delete the first one and the “photo” word with it and check for anything missing in your anchor tag and run your code, I hop this will solve your problem :wink:

1 Like

Hi @Gio7
I hope you got already, this step it seems tricky for all newies.

This is text, <a>this is text inside a p element and is also a link</a>
This is another text, <img  src="workplace.jpg" alt="Workplace">the image before is also a link</a>. I hope this examples will help you to understand the anchor element syntax.

The p element is a block element (it sits in a new line, because it takes all the available space, from left to right)
and the anchor, a, element is an inline element (like a word or a white space, it sits side by side with other words and inline elements, and only takes the space that its content needs).

Happy coding! :muscle: :sunglasses: :hugs:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.