Pycharm HTML image help | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Pycharm HTML image help

How do I get this code to display an image with Pycharm <body> <img src=ā€œimage.jpgā€> <body/> I copied the image to the templates directory of my Pycharm project and created a html file with the above code to test but it doesnā€™t display the image

7th May 2020, 1:22 PM
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu)
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu) - avatar
2 Respostas
+ 2
Easy solution: put image.jpg and HTML in same directory. Just a bit harder: I suggest using a relative path to your image.
7th May 2020, 10:38 PM
Kevin ā˜…
+ 1
Kevin Star thanks a lot i tried that but id didnt work however ive sorted it out by creating static directory and copying the image to an images directory in it
8th May 2020, 1:07 AM
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu)
Nwanakwoakwo Wid'obiagu (kenneth Anyanwu) - avatar