Should we precise the file path in <img> <video> and such tags? Edit: Read description | SoloLearn: Learn to code for FREE!

+1

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

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

5/23/2020 5:19:10 PM

Amine Mebarki

1 Answer

New 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">