Build a Cat Photo App - Step 9

Tell us what’s happening:

the systematic instructions are not accepting the herf attribute even though i encode it into the algorithm

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">

<!-- 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/146.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Photo App - Step 9

Welcome to the forum @jessie51 ,

The img element does not take an href attribute. You were asked to add an alt attribute.

Happy coding!

Hi buddy, See here this is the img element given below in which there is alt attribute presented in it.

<img src="cat.jpg" alt="A cat">

Here now you’re instructed to add the given below alt attribute to the img element.

Inside the img element, add an alt attribute with this text:

A cute orange cat lying on its back

Hope You Understand.