The HTML <video>element is used to show a video on a web page.
controls, autoplay, and muted inside the <video> tag, then use multiple <source> tags inside it with proper MIME type attributes.
<!DOCTYPE html> <html> <head> <title>HTML Video Practice</title> </head> <body> <h2>Featured Video Player</h2> <video width="480" height="270" controls autoplay muted> <source src="promo.mp4" type="video/mp4"> <source src="promo.ogg" type="video/ogg"> Sorry, your browser does not support inline video playback. </video> </body> </html>
<video> element uses controls to render play/pause, volume, and progress bar UI elements. Adding autoplay starts video playback immediately on page load, but modern browsers require muted alongside it for autoplay policies to take effect. Providing multiple <source> tags allows the browser to select the first format it supports (e.g., MP4 or OGG), while the plain text at the bottom serves as fallback content for outdated browsers.