The 5-Part Video Element
If you have your own video files, the video element allows you to add a functioning player to your website.
The 5 attributes the video element should include are:
- The tags themselves.
- The source attribute.
- A video poster.
- Width and height values.
- Other attributes which define how users can interact with the media.
Note As there are two ways to approach this, the following pages with showcase both:
Single-Source
Use this set-up if you only have one version of the video file, like an MP4.
movie.mp4
Multiple-Source
Use this set-up if you have multiple versions of the video file, like MP4, WebM, OGG, etc.
movie.mp4
movie.webm
movie.ogg
- Previous
- Next