简体   繁体   中英

Image not rendering in html. (<img>)

I believe my files are located in the same folder but for some reason it's just not working. Here is the screen shot of my folder. The screen shot of my folder

And here is the code... (The code is in index.html shown in the screen shot.)

<div>
  <img src="Tawsk.jpg" alt="Tawsk" width="460" height="345">
</div>

I don't know what the problem is... It will be great if you could provide me with some guidance. Thanks.

you forget some syntax to write "./" on your code

 <div> <img src="./Tawsk.jpg" alt="Tawsk" width="460" height="345"> </div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM