I am trying to insert image to my work but am having difficulties

Tell us what’s happening:
Describe your issue in detail here. i have succeeded in inserting the image, but after running the program, i get a syntax error message that i am supposed to alt the image url, and i do not know how to do that

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>



<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p><img src="https://www.freecatphotoapp.com/your-image.jpg" >alt="A business cat wearing a necktie.">
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

Here’s a quick, easy explanation of what you need:

The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.

The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).

there are 2 examples of code in the far left column. dont forget to use the directional arrows to view to entire examples. the “alt” variable is in the 2nd example.
Proof read your code and check for typos. Most of your mistakes will be simple overlooked errors. Don’t get frustrated. And don’t be afraid to reset the code and start over. the best code is simple code

there is a syntax error in the code. the img tag should include alt attribute within itself as below.

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