Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening:
Describe your issue in detail here.

  **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>
    <img><src="https://cdn.freecodecamp.org/culum/cat-photo-app/relaxing-cat.jpg">
  </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/103.0.0.0 Safari/537.36

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

Link to the challenge:

You’re being asked to add an attribute to your existing img element.

it follows this format.

< tag name attribute name="attribute value">

here your
tag name = img
attribute name = src
attribute value = http//:www.xyz.com

just plug in the values to the format.

Hope this helps

syntax error!!

  • src should go within “img” element, not out side of it
  • src “url” is wrong, use given “value” for that url instead

address those, it should be fine. and if you need any more reference than look at what “danee” has mentioned and how to take on this “step”

happy learning :slight_smile:

1 Like