Video

In an HTML text, a video is defined via the <video> tag. Using the <source> element inside the video block permits different source files to guarantee browser compatibility.

Attributes:

  • controls: Included are play, stop, and volume controls for videos.
  • autoplay: The video begins playing on its own when the page loads.
  • loop: Automatically plays the video again.
  • muted: This option, which is frequently used with autoplay, mutes the video sound.

Example of Embedding a Video:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

logo

HTML

Video

Beginner 5 Hours

In an HTML text, a video is defined via the <video> tag. Using the <source> element inside the video block permits different source files to guarantee browser compatibility.

Attributes:

  • controls: Included are play, stop, and volume controls for videos.
  • autoplay: The video begins playing on its own when the page loads.
  • loop: Automatically plays the video again.
  • muted: This option, which is frequently used with autoplay, mutes the video sound.

Example of Embedding a Video:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Similar Data Science Tutorials

Related tutotials

Frequently Asked Questions for html

line

Copyrights © 2024 letsupdateskills All rights reserved