+ 1
what is src and how it works?
6 Réponses
+ 1
src is the path to the file
+ 1
<audio src="example.mp3"></audio>
+ 1
just think of it as a 'source' it will trace the location of the file but it must be in a folder, for example.if you put index.html in a folder,and you create a img folder in that folder and all .jpg file must be put in that img folder.so it will be like <img src="../img/example.jpg">. or <img src="..\img\example.jpg".i hope this help.
+ 1
src is used as attribute for path of the file..<img src=" "
<audio Src= " "
+ 1
So are you saying I should have a file index.html and within that file I should have separate folders for images and video? If this is correct what other folders should I have inside the index.html file.
0
SRC is the path to file you want to link or insert. the path may be absolute or relative. suppose u want to insert an image/audio/video file u can use SRC which will point to the location the file exists. examples has already been there before my comment. thnx