Sobre a Aula
HTML video tags
When it comes to embedding videos on your web pages, HTML provides a set of dedicated tags to make this process efficient and flexible.
Let’s explore some of these essential tags that are part of the <video> element.
- <video>: This is the main tag that defines an area to embed videos on your page. Within this tag, you can include various others to customize the video experience.
- <source>: The <source> tag is used to specify video files that can be loaded by the <video> tag. You can provide different video formats to ensure compatibility with various browsers.
- <track>: To add subtitles or audio descriptions, you use the <track> tag. It allows the inclusion of caption tracks or audio descriptions that enhance the accessibility of your video content.
Tag | Description |
---|---|
<video> | Set a video or movie |
<source> | Defines various media resources for media elements such as |
<track> | Set text tracks in media players |
Entrar na conversa