Learn HTML by Building a Cat Photo App - Step 8

im having trouble getting the src attribute to pass, can someone please give me input on how i can pass this

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36

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

Link to the challenge:

The img tag is used to add images to your webpage. But how do you tell the browser which image to add? The answer to this is attributes.

attributes or properties is any additional data that you can pass to the HTML element which will help the browser and src attribute does just that because with its help, we can pass a path to our image to the element.

The syntax for attributes is this

// attribute-name   value
//          |       |
   <button class="one" > my button </button>

You just need to use the correct syntax for the src attribute and it should work just fine.
Hope this helps!:smile:

yea thanks for the reply can u give me the full details on how to pass this level

So users on the forums are not allowed to post solutions on the forum, we can only help with hints and suggestions. If you’re facing a particular issue, let me know

never mind i got it thank you so much straranbeer

1 Like

i need help with placing the anchor element

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