New! My 44-page ebook "CSS in 44 minutes" is out! 😃
# video
Allows to embed an video clip into a web page.
Example: Copy
src
Defines the source of the video file.
Required.
"/assets/HTML 5 Video.mp4"
You can use a relative path.
autoplay
The video will automatically start on load.
No value required.
controls
Show the browser's built-in audio controls.
No value required.
loop
The video will loop when reaching the end.
No value required.
muted
The video will be muted by default.
No value required.
preload
The video will be preloaded when the page loads.
No value required.
poster
Define an image to display until the video is played. If no poster is provided, the first frame of the video will be used.
"/images/html-reference-share.png"
Use the HTML Reference share image as poster.
height
Define the height of the video in pixels.
"90"
Set the height to 90 pixels.
width
Define the width of the video in pixels.
"160"
Set the width to 160 pixels.