Should we precise the file path in <img> <video> and such tags? Edit: Read description | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Should we precise the file path in <img> <video> and such tags? Edit: Read description

<img src="///filepath\filename.filetype"> is this correct?

23rd May 2020, 5:19 PM
Amine Mebarki
Amine Mebarki - avatar
1 Answer
+ 1
yes, Explanation: if the image or video beside html file u should wtite the name of image or video directly and if the image or video not beside the html file u should write the path of it and use forward slash to enter any file Example: Let the name of image is cat.jpg and exist in a file called images <img src="images/cat.jpg">
25th May 2020, 2:35 PM
Muhammad Galhoum
Muhammad Galhoum - avatar