skip to Main Content

I am trying to insert an image into a practice HTML page I’m creating, but when I place the following function it doesn’t recognize the picture.

<img scr="Buddha.png" alt="Buddha Sitting"/>

I already placed the PNG in the same folder where de HTML is but it doesn’t detect it when I start writting the name into scr.

I tried writting it in lower and upper case. Also changing the PNG file to different folder.

I tried with a different picture in JPG format as well and it didn’t work.

3

Answers


  1. I hope that you are aware about the spelling mistake and its just a typo src instead of scr.
    Following is correct.

    <img src="Buddha.png" alt="Buddha Sitting"/>
    

    For your specific example of the HTML file referencing an image named "Buddha.png", here’s a basic example of what the directory structure might look like:

    project-folder/
    ├── index.html
    ├── Buddha.png

    Login or Signup to reply.
  2. Try this!

    <img src="Buddha.png" alt="Buddha Sitting"/>
    
    Login or Signup to reply.
  3. Is this the code… If yes. add = to the alt and add width and height

     <img src="Buddha.png" alt="Buddha Sitting" width="500" height="333">
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search