Learn HTML by Building a Cat Photo App - Step 8

im new to this and have no idea why its not letting me pass… theres an example in this step and i followed that and its telling me im wrong?

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <imgsrc="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

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

Link to the challenge:

You have it mostly correct. The <img> is the element whereas the src is the attribute. You will come across the term attribute a lot while taking this course. All attributes are applied within an element tag. For this one it is written as <img src=“url”> for any attribute be sure to space the name of the attribute one space from any other text. For example, like I did compared to what you did for the element tag and be sure to space it from other attributes as well such as <img src=“url” alt=“Some image”>.

1 Like

thanks heaps mate appreciate it

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