Conteúdo do Curso
HTML Essentials
HTML Essentials
Video
Embedding a video is similar to embedding an audio. The attributes and tags used are comparable. Let's take a detailed view.
Embedding Audio
The <video>
tag embeds video content into an HTML document, allowing users to play videos directly within the browser.
Video Attributes
controls
: Adds video controls for play, pause, and volume adjustment;autoplay
: Specifies autoplay functionality;loop
: Allows continuous video looping.
Example:
Source
The <source>
tag is used within the <video>
tag to specify the source (URL) of the video file and its attributes. src
specifies the URL of the video file. type
specifies the MIME type of the video file.
Example:
In the example above:
- The
<video>
tag includescontrols
,autoplay
, andloop
attributes; - The
<source>
tags specify the source URLs of the video files and their MIME types; - If the browser does not support the
<video>
tag or the specified video formats, the alternative textYour browser does not support the video element.
is displayed.
index
index
index
Video Tutorial
Obrigado pelo seu feedback!