Learn HTML by Building a Cat Photo App - Step 9

Tell us what’s happening:
I do not know where the alt attribute is supost to be in my code.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img src="

<!-- 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/115.0.0.0 Safari/537.36 Edg/115.0.1901.188

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

Link to the challenge:

I would restart the step to get the original HTML back. You don’t want to delete anything that is already there. You only want to add the alt attribute and its value to the img tag.

Look at the example:

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

Do you see how there is both a src attribute and alt attribute on the img tag? You would do the same thing to the img tag you are trying to add an alt attribute to.

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