+ 2

could sb help me why this solution make this code work?

i was reading some comments, someone had asked this code doesnt work: <img src="E:\photo.jpg" /> and some people replied a backward slash before E will make it work, <img src="/E:\photo.jpg" /> i wonder why? Could sb help?

29th Jul 2021, 6:37 AM
Tarlan
Tarlan - avatar
2 ответов
+ 1
Windows uses the backslash ( \ ) for the file system delimiter. For everything else the forward slash is used ( / )
29th Jul 2021, 7:16 AM
Coder-Rohit[{(∞)}]
Coder-Rohit[{(∞)}] - avatar
+ 1
Just paste you image location path and write your file name it will work.
29th Jul 2021, 11:02 AM
A S Raghuvanshi
A S Raghuvanshi - avatar