what is src and how it works? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is src and how it works?

8th Jul 2016, 2:21 AM
achyut
achyut - avatar
6 Answers
+ 1
src is the path to the file
8th Jul 2016, 5:45 AM
Евгений
Евгений - avatar
+ 1
<audio src="example.mp3"></audio>
8th Jul 2016, 5:46 AM
Евгений
Евгений - avatar
+ 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.
8th Jul 2016, 5:50 AM
uDkyfuUjkfoyfjAklhjyNojgE tOyeCwOtL
uDkyfuUjkfoyfjAklhjyNojgE tOyeCwOtL - avatar
+ 1
src is used as attribute for path of the file..<img src=" " <audio Src= " "
11th Jul 2016, 1:35 PM
Kshama Sachan
Kshama Sachan - avatar
+ 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.
21st Nov 2016, 6:51 AM
Casey965
Casey965 - avatar
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
13th Jul 2016, 11:06 AM
Abinash Satpathy
Abinash Satpathy - avatar