You should only add one opening anchor. step 15 cat app

keeps coming up saying " You should only add one opening anchor (a ) tag. Please remove any extras" but i’m sure i’m only using one and have rewrote all of it out again just to be sure.

      <h2>Cat Photos</h2>

<!-- User Editable Region -->

      <!-- TODO: Add link to cat photos -->     
      <p>See more <a target="_blank" href="">cat photos</a> in our gallery.</p>
 <a href=""> <img src="" alt="a cute orange cat lying on its back." </a>

<!-- User Editable Region -->


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

You accidentally deleted the > on the img tag.

thanks for the help. I’ve added that in and its still saying ’ You should only add one opening anchor (a ) tag’ any other ideas? everything is working on the preview and its letting me click on the image.

You’ll need to paste your updated HTML in here so we can see exactly what you did.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

    <a href=""> <img src=""> <alt="A cute orange cat lying on its back.">

You moved the alt text for the image into a new tag. I don’t think you want to do that. Also, you don’t have a closing a tag.

Look at how you created a link of cat photos in the previous steps. You did that by wrapping the text in opening and closing a tags. That’s how you turn anything into a link. So you want to do that for the img.

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