
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML - <video> Tag
Description
The HTML <video> tag is used to embed video into your web page, it has several video sources.
Example
<!DOCTYPE html> <html> <head> <title>HTML video Tag</title> </head> <body> <p>Run your first program using an Online Compiler (compileonline.com)</p> <br /> <video width = "500" height = "300" controls> <source src = "/html/compileonline.mp4" type = "video/mp4"> This browser doesn't support video tag. </video> </body> </html>
This will produce the following result −
Global Attributes
This tag supports all the global attributes described in − HTML Attribute Reference
Specific Attributes
The HTML <video> tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
autoplay ![]() |
autoplay | Specifies that the video will play automatically. |
controls ![]() |
controls | Specifies that the video controls gets displayed. |
height ![]() |
pixels | Specifies the height |
loop ![]() |
loop | Specifies that the video will start again every time after finish. |
muted ![]() |
muted | Specifies that the audio should be muted |
poster ![]() |
URL | Specifies the image to be shown while the video is downloading. |
preload ![]() |
auto metadata none |
Specifies what author thinks will lead to user experience at its best. |
src ![]() |
URL | Specifies the URL |
width ![]() |
pixels | Specifies the width |
Event Attributes
This tag supports all the event attributes described in − HTML Events Reference
Browser Support
Chrome | Firefox | IE | Opera | Safari | Mobile |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
html_tags_reference.htm
Advertisements