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
I hope that you are aware about the spelling mistake and its just a typo src instead of scr.
Following is correct.
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
Try this!
Is this the code… If yes. add = to the alt and add width and height