To Insert a video clip is simple, just like an image.
<video src="LINK_ADDRESS">ALT_MESSAGE</video>
Some browsers doesn’t support videos, hence you must specify ALT_MESSAGE
to show the message if it doesn’t work:
<video src="/videos/ocean.mp4">Your browser doesn't support videos.</video>
Browsers that support video display
You can add some boolean value to make it have a play buttom controls
, autoplay autoplay
and looping loop
:
<video controls autoplay loop src="/videos/ocean.mp4">
Your browser doesn't support videos.
</video>
Audio Implementation is the same as Video but with <video>
replaced by <audio>
<audio controls autoplay loop src="/audios/music.mp4">
Your browser doesn't support audios.
</audio>