is <audio> and <video> just for local files? | Sololearn: Learn to code for FREE!


is <audio> and <video> just for local files?

or could I : <video> <iframe> </video> just for semantic reasons...

10/26/2017 9:10:19 PM

Andres Gornatti

3 Answers

New Answer


No, it's not a semantic element, but it's also not for local files. It's for files that can be accessed with a URL ( The browser does not have access to files on a user's computer unless the file was copied into local storage specifically by the user. I don't see why you would ever need to use an iframe, the <video> tag is much more efficient.


audio and video tags are for server files, not local files. It's only for local file, if the html run from your local machine.


well, you could just use iframe, or if you like youtube, click embed