+ 5

Why not work this code

<!doctype html> <html> <head> <meta charset ="utf-8"></meta> <title> motivation </title> </head> <body> <video width = "100%" controls> <sourcs src ="https://www.dropbox.com/s/l2lnwnl9u0k0lwr/80e52e3fb8e171930a5b7afe8860724b.mp4?dl=0"> </video> </body> </html>

18th Mar 2021, 12:39 AM
Melekte Petros
Melekte Petros - avatar
1 Answer
+ 1
There are a couple things you need to fix. 1. Change your video URL to: https://www.dropbox.com/s/l2lnwnl9u0k0lwr/80e52e3fb8e171930a5b7afe8860724b.mp4?raw=1 Not setting raw=1 leads to a CORS violation. More discussion on this is at: https://www.dropboxforum.com/t5/Dropbox-files-folders/How-to-embed-a-video-from-your-Dropbox-account-on-a-website/td-p/208019 2. Fix the spelling of your source tag name. 3. This won't cause any obvious problem but remove your /meta. Keep your starting meta tag to set UTF-8 but remove your closing tag. meta is an empty tag and doesn't need to be closed explicitly in HTML5 like you've done. Closing it like you did might make the markup invalid even if the browser always handles it gracefully.
18th Mar 2021, 1:11 AM
Josh Greig
Josh Greig - avatar