A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/html-css-exercise/audio-video-answer.php below:

Website Navigation


HTML CSS Exercise: HTML5 Audio & Video

HTML CSS Exercise: HTML5 Audio & VideoLast update on March 04 2024 06:50:52 (UTC/GMT +8 hours) Solution:

HTML Code :

<!DOCTYPE HTML><!-- Specifies the document type and version of HTML -->
<html lang="en"><!-- Begins the HTML document and sets the language to English -->
<head>
<meta charset=utf-8><!-- Sets the character encoding to UTF-8 -->
<title>HTML CSS Audio/Video exercise</title><!-- Sets the title of the webpage -->
</head>
<body>
<video controls><!-- Begins the video element with controls -->
<source src="big_buck_bunny.mp4" type="video/ogv"><!-- Specifies the source of the video in Ogg format -->
<source src="big_buck_bunny.mp4" type="video/mp4"><!-- Specifies the source of the video in MP4 format -->
  Your browser does not support the <code>video</code> element. <!-- Displays a message if the browser does not support the video element -->
</video><!-- Ends the video element -->
</body>
</html>

Explanation:

Live Demo :

See the Pen audio-video-answer by w3resource (@w3resource) on CodePen.

Supported browser

What is the difficulty level of this exercise?

Test your Programming skills with w3resource's quiz.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4