Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

Describe your issue in detail here.
How to turn image into a link

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

 <a target = "_https://freecatphotoapp.com" href= "<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"" alt="A cute orange cat lying on its back."></a>

<!-- User Editable Region -->

    </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/109.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

A few things here:
Your href attribute is missing. It appears to simply have an opening " with no string or closing ". You didn’t complete your opening a tag. Remember that quotes (" or ') must always come in pairs and every opening bracket (<, { or [) must have a corresponding closing bracket (>, } or ]).

Welcome to the community @omondidon365 !

To add to the great guidance of @ArielLeslie , I would like to mention that it may be best to reset the step ( this will not affect any of the previously completed steps) to have a fresh code for this step.

Do not add any additional attributes to the anchor, except what the step requires. (I noticed an unmentioned attribute added to the anchor.

@ArielLeslie has provided you with the guidance to the solution for the problem with he code.

Keep up the progress on your coding journey.

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