How to put media in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put media in html?

How do you put a file in a website, such as a game or something, and make it work online? Do you have to just put their link in the html file just like a video or an image, or do you need to do something else?

6th Oct 2017, 12:47 PM
BananaGod
BananaGod - avatar
2 Answers
+ 1
I don't think you can execute files like exes online, it's just not a thing. To make an online game, just code one in JavaScript, PHP, or whatever language you want. If you want a download link, just do the following, replacing the needed values: <a href="file_to_download.extention" download> The key there is the download attribute at the end, with no value, just the attribute.
6th Oct 2017, 1:46 PM
LunarCoffee
LunarCoffee - avatar
+ 1
Oh
6th Oct 2017, 2:27 PM
BananaGod
BananaGod - avatar