SlideShare a Scribd company logo
HTML MULTIMEDIA
WHAT IS MULTIMEDIA?
 Multimedia comes in many different formats. It can
be almost anything you can hear or see, like
images, music, sound, videos, records, films,
animations, and more.
 Web pages often contain multimedia elements of
different types and formats.
MULTIMEDIA FORMATS
 Multimedia elements (like audio or video) are stored
in media files.
 The most common way to discover the type of a
file, is to look at the file extension.
 Multimedia files have formats and different
extensions like: .wav, .mp3, .mp4, .mpg, .wmv, and
.avi.
There are many video formats out there.
The MP4, WebM, and Ogg formats are supported
by HTML.
The MP4 format is recommended by YouTube.

Recommended for you

Html 5 full course
Html 5 full courseHtml 5 full course
Html 5 full course

The document discusses HTML5 audio and video capabilities including embedding media using the <audio> and <video> tags without Flash. It provides examples of embedding video and audio files, specifying media sources and formats. It also describes attributes that control media playback and lists events that can be handled with JavaScript.

htmlhtml5
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going

A much-​​​​hyped feature of HTML5 is native multimedia. In this session we’ll look at embedding &lt;audio> and &lt;video> into your pages, and how to make it work cross-​​​​browser and degrade gracefully in older browsers. Sound too good to be true? It’s not! We’ll look at the pros and the cons of HTML5 multimedia and see how to write simple controls with JavaScript. Most excitingly, we’ll also look at how HTML5 builds in support for subtitles and captions for multimedia accessibility. And you might pick up a Turkish dancing tip on the way. --- Edited version of my Web Directions London talk on 26 May 2011. Slides that don't make sense out of context are removed.

audiomultimediahtml5
Httml flash
Httml flashHttml flash
Httml flash

The document discusses how to embed different types of multimedia content in HTML pages, including audio, video, images and animations. It provides code examples for playing audio and video files in different formats like WAV, MP4, SWF and WMV using elements like <object> and <embed>. YouTube videos can be embedded using <iframe> or <object> tags. Multimedia files have specific file extensions depending on their format, like .gif, .png, .jpg, .swf, .wav and .mp4.

Use of Multimedia tag in HTML using exmples
MULTIMEDIA TAGS
 HTML allows adding different multimedia files on
your website by various multimedia tags. These
tags include:
 <audio> for displaying a audio file on the web page,
 <video> for displaying a video file on the web page,
 <embed> for embedding multimedia files on the
web page,
 <object> for embedding multimedia files on the web
page.
 <iframe> for embedding other web pages.
HTML AUDIO
 The HTML <audio> element is used to play an audio
file on a web page.
How It Works
 The controls attribute adds audio controls, like play,
pause, and volume.
 The <source> element allows you to specify
alternative audio files which the browser may choose
from. The browser will use the first recognized
format.
 The text between the <audio> and </audio> tags
will only be displayed in browsers that do not support
the <audio> element.
 <audio controls autoplay>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio
element.
</audio>
 To start an audio file automatically, use
the autoplay attribute
 Add muted after autoplay to let your audio file
start playing automatically (but muted)

Recommended for you

Technical considerations 2c
Technical considerations 2cTechnical considerations 2c
Technical considerations 2c

The document discusses technical considerations for a DVD, including: 1) The platform will be computer to allow wider compatibility compared to just DVD players. File formats like .wmv, .mpg, and .mp4 are commonly used due to wide compatibility. 2) Players like Flash, Shockwave, RealPlayer, and Windows Media Player should be supported to reach the largest audience. The video will be aimed at Windows Media Player which is most common. 3) File size should be kept small to reduce DVD costs while maintaining high quality for streaming. YouTube is recommended for hosting due to generally faster load times compared to Vimeo.

Beginning html5 media, 2nd edition
Beginning html5 media, 2nd editionBeginning html5 media, 2nd edition
Beginning html5 media, 2nd edition

This document provides an overview of encoding video for HTML5 playback. It discusses the importance of understanding containers and codecs. The main containers supported by browsers are MP4, WebM, and Ogg. MP4 typically contains H.264 video and AAC audio, WebM contains VP8 or VP9 video with Vorbis or Opus audio, and Ogg contains Theora video with Vorbis or Opus audio. Codecs like H.264, VP8, and Theora are used to compress the video, while codecs like AAC, Vorbis, and Opus compress the audio. The document also discusses tools that can be used to create video files in these various formats for HTML5 playback.

 
by ser
Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3

This document discusses why Flash should be replaced with HTML5. It provides several advantages of using HTML5 over Flash, such as HTML5 being a standard technology that is universally accessible without needing plugins. It also describes how HTML5 media playback is simpler than traditional techniques through built-in video and audio tags. The document then explains how to create animations and interactive pages using CSS3 and HTML5 elements and forms instead of Flash.

softwaresoftware developmenthtml5
HTML VIDEO
 The HTML <video> element is used to show a video on a web
page.
 How it Works
 The controls attribute adds video controls, like play, pause,
and volume.
 It is a good idea to always include width and height attributes. If
height and width are not set, the page might flicker while the
video loads.
 The <source> element allows you to specify alternative video
files which the browser may choose from. The browser will use
the first recognized format.
 The text between the <video> and </video> tags will only be
displayed in browsers that do not support the <video> element.
 To start a video automatically, use
the autoplay attribute
<video width="320" height="240" autoplay>
<source src="movie.mp4" type="video/mp4
">
<source src="movie.ogg" type="video/ogg"
>
Your browser does not support the video
tag.
</video>
Add muted after autoplay to let your video
start playing automatically (but muted)

More Related Content

Similar to Use of Multimedia tag in HTML using exmples

Html multimedia tag
Html multimedia tagHtml multimedia tag
Html multimedia tag
Student
 
Intro to HTML5 audio tag
Intro to HTML5 audio tagIntro to HTML5 audio tag
Intro to HTML5 audio tag
satejsahu
 
Lesson 6
Lesson 6Lesson 6
Lesson 6
Slides4Victor
 
Html 5 full course
Html 5 full courseHtml 5 full course
Html 5 full course
AbhishekMondal42
 
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going
brucelawson
 
Httml flash
Httml flashHttml flash
Httml flash
Md Ali Hossain
 
Technical considerations 2c
Technical considerations 2cTechnical considerations 2c
Technical considerations 2c
Crashin
 
Beginning html5 media, 2nd edition
Beginning html5 media, 2nd editionBeginning html5 media, 2nd edition
Beginning html5 media, 2nd edition
ser
 
Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3
Saurabh Kheni
 
Html media
Html mediaHtml media
Html media
Webtech Learning
 
HTML5 audio & video
HTML5 audio & videoHTML5 audio & video
HTML5 audio & video
Hamza Zahid
 
Video Accessibility
Video Accessibility Video Accessibility
Video Accessibility
Kenneth Ronkowitz
 
HTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're goingHTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're going
brucelawson
 
Streaming Media Guide
Streaming Media GuideStreaming Media Guide
Streaming Media Guide
Videoguy
 
HTML5 Audio & Video
HTML5 Audio & VideoHTML5 Audio & Video
HTML5 Audio & Video
Aaron Gustafson
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
Rakesh Jha
 
FYBSC IT Web Programming Unit II Audio Video in HTML
FYBSC IT Web Programming Unit II  Audio  Video in HTMLFYBSC IT Web Programming Unit II  Audio  Video in HTML
FYBSC IT Web Programming Unit II Audio Video in HTML
Arti Parab Academics
 
Enhanced video experience in SharePoint 2013
Enhanced video experience in SharePoint 2013Enhanced video experience in SharePoint 2013
Enhanced video experience in SharePoint 2013
Karthick S
 
1
11
ertdg
ertdgertdg
ertdg
Axel Huang
 

Similar to Use of Multimedia tag in HTML using exmples (20)

Html multimedia tag
Html multimedia tagHtml multimedia tag
Html multimedia tag
 
Intro to HTML5 audio tag
Intro to HTML5 audio tagIntro to HTML5 audio tag
Intro to HTML5 audio tag
 
Lesson 6
Lesson 6Lesson 6
Lesson 6
 
Html 5 full course
Html 5 full courseHtml 5 full course
Html 5 full course
 
HTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're goingHTML5 Multimedia: where we are, where we're going
HTML5 Multimedia: where we are, where we're going
 
Httml flash
Httml flashHttml flash
Httml flash
 
Technical considerations 2c
Technical considerations 2cTechnical considerations 2c
Technical considerations 2c
 
Beginning html5 media, 2nd edition
Beginning html5 media, 2nd editionBeginning html5 media, 2nd edition
Beginning html5 media, 2nd edition
 
Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3Replacing flash with HTML5 and CSS3
Replacing flash with HTML5 and CSS3
 
Html media
Html mediaHtml media
Html media
 
HTML5 audio & video
HTML5 audio & videoHTML5 audio & video
HTML5 audio & video
 
Video Accessibility
Video Accessibility Video Accessibility
Video Accessibility
 
HTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're goingHTML5 multimedia - where we are, where we're going
HTML5 multimedia - where we are, where we're going
 
Streaming Media Guide
Streaming Media GuideStreaming Media Guide
Streaming Media Guide
 
HTML5 Audio & Video
HTML5 Audio & VideoHTML5 Audio & Video
HTML5 Audio & Video
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
 
FYBSC IT Web Programming Unit II Audio Video in HTML
FYBSC IT Web Programming Unit II  Audio  Video in HTMLFYBSC IT Web Programming Unit II  Audio  Video in HTML
FYBSC IT Web Programming Unit II Audio Video in HTML
 
Enhanced video experience in SharePoint 2013
Enhanced video experience in SharePoint 2013Enhanced video experience in SharePoint 2013
Enhanced video experience in SharePoint 2013
 
1
11
1
 
ertdg
ertdgertdg
ertdg
 

Recently uploaded

Response & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITHResponse & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITH
IIIT Hyderabad
 
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
Mani Krishna Sarkar
 
L-3536-Cost Benifit Analysis in ESIA.pptx
L-3536-Cost Benifit Analysis in ESIA.pptxL-3536-Cost Benifit Analysis in ESIA.pptx
L-3536-Cost Benifit Analysis in ESIA.pptx
naseki5964
 
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K SchemeMSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
Anwar Patel
 
IS Code SP 23: Handbook on concrete mixes
IS Code SP 23: Handbook  on concrete mixesIS Code SP 23: Handbook  on concrete mixes
IS Code SP 23: Handbook on concrete mixes
Mani Krishna Sarkar
 
Vernier Caliper and How to use Vernier Caliper.ppsx
Vernier Caliper and How to use Vernier Caliper.ppsxVernier Caliper and How to use Vernier Caliper.ppsx
Vernier Caliper and How to use Vernier Caliper.ppsx
Tool and Die Tech
 
Quadcopter Dynamics, Stability and Control
Quadcopter Dynamics, Stability and ControlQuadcopter Dynamics, Stability and Control
Quadcopter Dynamics, Stability and Control
Blesson Easo Varghese
 
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
sharvaridhokte
 
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
sanabts249
 
Unblocking The Main Thread - Solving ANRs and Frozen Frames
Unblocking The Main Thread - Solving ANRs and Frozen FramesUnblocking The Main Thread - Solving ANRs and Frozen Frames
Unblocking The Main Thread - Solving ANRs and Frozen Frames
Sinan KOZAK
 
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model SafeRohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
binna singh$A17
 
Development of Chatbot Using AI/ML Technologies
Development of  Chatbot Using AI/ML TechnologiesDevelopment of  Chatbot Using AI/ML Technologies
Development of Chatbot Using AI/ML Technologies
maisnampibarel
 
IWISS Catalog 2024
IWISS Catalog 2024IWISS Catalog 2024
IWISS Catalog 2024
Iwiss Tools Co.,Ltd
 
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdfGUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
ProexportColombia1
 
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
YanKing2
 
Net Zero Case Study: SRK House and SRK Empire
Net Zero Case Study: SRK House and SRK EmpireNet Zero Case Study: SRK House and SRK Empire
Net Zero Case Study: SRK House and SRK Empire
Global Network for Zero
 
Conservation of Taksar through Economic Regeneration
Conservation of Taksar through Economic RegenerationConservation of Taksar through Economic Regeneration
Conservation of Taksar through Economic Regeneration
PriyankaKarn3
 
Social media management system project report.pdf
Social media management system project report.pdfSocial media management system project report.pdf
Social media management system project report.pdf
Kamal Acharya
 
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
Jim Mimlitz, P.E.
 
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdfOCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
Muanisa Waras
 

Recently uploaded (20)

Response & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITHResponse & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITH
 
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
1239_2.pdf IS CODE FOR GI PIPE FOR PROCUREMENT
 
L-3536-Cost Benifit Analysis in ESIA.pptx
L-3536-Cost Benifit Analysis in ESIA.pptxL-3536-Cost Benifit Analysis in ESIA.pptx
L-3536-Cost Benifit Analysis in ESIA.pptx
 
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K SchemeMSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme MSBTE K Scheme
 
IS Code SP 23: Handbook on concrete mixes
IS Code SP 23: Handbook  on concrete mixesIS Code SP 23: Handbook  on concrete mixes
IS Code SP 23: Handbook on concrete mixes
 
Vernier Caliper and How to use Vernier Caliper.ppsx
Vernier Caliper and How to use Vernier Caliper.ppsxVernier Caliper and How to use Vernier Caliper.ppsx
Vernier Caliper and How to use Vernier Caliper.ppsx
 
Quadcopter Dynamics, Stability and Control
Quadcopter Dynamics, Stability and ControlQuadcopter Dynamics, Stability and Control
Quadcopter Dynamics, Stability and Control
 
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
22519 - Client-Side Scripting Language (CSS) chapter 1 notes .pdf
 
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
 
Unblocking The Main Thread - Solving ANRs and Frozen Frames
Unblocking The Main Thread - Solving ANRs and Frozen FramesUnblocking The Main Thread - Solving ANRs and Frozen Frames
Unblocking The Main Thread - Solving ANRs and Frozen Frames
 
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model SafeRohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
Rohini @ℂall @Girls ꧁❤ 9873777170 ❤꧂VIP Yogita Mehra Top Model Safe
 
Development of Chatbot Using AI/ML Technologies
Development of  Chatbot Using AI/ML TechnologiesDevelopment of  Chatbot Using AI/ML Technologies
Development of Chatbot Using AI/ML Technologies
 
IWISS Catalog 2024
IWISS Catalog 2024IWISS Catalog 2024
IWISS Catalog 2024
 
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdfGUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
GUIA_LEGAL_CHAPTER_4_FOREIGN TRADE CUSTOMS.pdf
 
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large...
 
Net Zero Case Study: SRK House and SRK Empire
Net Zero Case Study: SRK House and SRK EmpireNet Zero Case Study: SRK House and SRK Empire
Net Zero Case Study: SRK House and SRK Empire
 
Conservation of Taksar through Economic Regeneration
Conservation of Taksar through Economic RegenerationConservation of Taksar through Economic Regeneration
Conservation of Taksar through Economic Regeneration
 
Social media management system project report.pdf
Social media management system project report.pdfSocial media management system project report.pdf
Social media management system project report.pdf
 
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
 
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdfOCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
OCS Training - Rig Equipment Inspection - Advanced 5 Days_IADC.pdf
 

Use of Multimedia tag in HTML using exmples

  • 2. WHAT IS MULTIMEDIA?  Multimedia comes in many different formats. It can be almost anything you can hear or see, like images, music, sound, videos, records, films, animations, and more.  Web pages often contain multimedia elements of different types and formats.
  • 3. MULTIMEDIA FORMATS  Multimedia elements (like audio or video) are stored in media files.  The most common way to discover the type of a file, is to look at the file extension.  Multimedia files have formats and different extensions like: .wav, .mp3, .mp4, .mpg, .wmv, and .avi.
  • 4. There are many video formats out there. The MP4, WebM, and Ogg formats are supported by HTML. The MP4 format is recommended by YouTube.
  • 6. MULTIMEDIA TAGS  HTML allows adding different multimedia files on your website by various multimedia tags. These tags include:  <audio> for displaying a audio file on the web page,  <video> for displaying a video file on the web page,  <embed> for embedding multimedia files on the web page,  <object> for embedding multimedia files on the web page.  <iframe> for embedding other web pages.
  • 7. HTML AUDIO  The HTML <audio> element is used to play an audio file on a web page. How It Works  The controls attribute adds audio controls, like play, pause, and volume.  The <source> element allows you to specify alternative audio files which the browser may choose from. The browser will use the first recognized format.  The text between the <audio> and </audio> tags will only be displayed in browsers that do not support the <audio> element.
  • 8.  <audio controls autoplay> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>  To start an audio file automatically, use the autoplay attribute  Add muted after autoplay to let your audio file start playing automatically (but muted)
  • 9. HTML VIDEO  The HTML <video> element is used to show a video on a web page.  How it Works  The controls attribute adds video controls, like play, pause, and volume.  It is a good idea to always include width and height attributes. If height and width are not set, the page might flicker while the video loads.  The <source> element allows you to specify alternative video files which the browser may choose from. The browser will use the first recognized format.  The text between the <video> and </video> tags will only be displayed in browsers that do not support the <video> element.
  • 10.  To start a video automatically, use the autoplay attribute <video width="320" height="240" autoplay> <source src="movie.mp4" type="video/mp4 "> <source src="movie.ogg" type="video/ogg" > Your browser does not support the video tag. </video> Add muted after autoplay to let your video start playing automatically (but muted)