Specifying video source. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Specifying video source.

"You can specify the video source URL using an attribute in a video element, or using source elements inside the video element." Could somoene kindly explain the difference between these two?

20th Nov 2018, 11:40 AM
Msizi
3 Answers
+ 4
It means, you can do it like this: <video src="http://www.sololearn.com/uploads/video.mp4" type="video/mp4" controls> Video element not supported by your browser </video> Or this: <video controls> <source src="http://www.sololearn.com/uploads/video.mp4" type="video/mp4"> Video element is not supported by your browser </video>
20th Nov 2018, 1:18 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 2
You're welcome, Msizi 😊
20th Nov 2018, 1:59 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
Thanks a lot Kishalaya
20th Nov 2018, 1:24 PM
Msizi