6
Most read
8
Most read
11
Most read
HTML AUDIO & VIDEO
SESSION 11
Aptech Computer Education
Presented by Muhammad Ehtisham Siddiqui (BSCS)
1
Objectives
 Describe the need for multimedia in HTML5
 List the supported media types in HTML5
 Explain the audio elements in HTML5
 Explain the video elements in HTML5
 Explain the accessibility of audio and video
elements
 Describe how to deal with non-supporting
browsers
Presented by Muhammad Ehtisham Siddiqui (BSCS)
2
Introduction
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
3
 Traditionally, Web browsers were capable of handling only graphics
and text
 Suppose, if a user had to play some video, then, a distinct program,
plug-in, or an ActiveX control had to be installed.
 Earlier, Web designers and Web developers used to set up Web
pages to play audio and video on the Web using Adobe Flash
player.
 Multimedia is a combination of various elements such as video,
graphics, sound, and text. A common way of inserting a multimedia
content on Web pages is by embedding a video or audio file in the
Web page.
Multimedia Support
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
4
Container Video Codec Audio Codec
Mp4 H.264 AAC
Ogg Theora Vorbis
WebM VP8 Vorbis
Audio in HTML5
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
5
 The <audio> element will help the developer to embed music on the Web site and
allow the user to listen to music.
 The <audio> element is one of the best features in HTML5.
 This feature allows the user to enable a native audio file within the Web browser.
 The <audio> tag specifies the audio file to be used in the HTML document.
 The src attribute is used to link to the audio file.
Audio in HTML5(Code)
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
6
<!DOCTYPE html>
<html>
<head>
<title>audio element</title>
</head>
<body>
<audio src=”d:sourcecodesaudio.mp3” controls autoplay loop>
html5 audio not supported
</audio>
</body>
</html>
Audio Attributes in HTML5
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
7
Audio
Attributes
Description
autoplay This attribute identifies whether to start the audio or not once
the object is loaded. The attribute accepts a boolean value
which when specified will automatically start playing the
audio as soon as possible without stopping
autobuffer This attribute starts the buffering automatically
controls This attribute identifies the audio playback controls that
should be displayed such as resume, pause, play, and
volume buttons
preload This attribute identifies whether the audio has to be loaded
when the page loads and is ready to execute. This preload
attribute is ignored if autoplay exists
src This attribute specifies the location or the URL of the audio
file that has to be embedded
Videos in HTML 5
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
8
 The <video> element is a new feature added in HTML5.
 The user can use the <video> element for embedding the video content on the Web
page.
 The easiest way to specify the video is by using the src attribute which give the URL
of the video file to be used.
 Suppose, if the browser does not support the <video> element then the content
between the start tag and end tag is displayed on the browser.
Videos in HTML 5 (Code)
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
9
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<video src=”D:Source codesmovie.mp4”>
Your browser does not support the video.
</video>
</body>
</html>
Videos in HTML 5 (Code 2)
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
10
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<video height=“200” width=“200” controls>
<source src=”myvideo.mp4” type=”video/mp4”>
<source src=”myvideo.webm” type=”video/webm”>
<track src=”eng.vtt” label=”English p subtitles” kind=”subtitles” srclang=”en” >
</video>
</body>
</html>
HTML5 Video Attributes
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
11
Attribute Description
autoplay Specifies that the browser will start playing the video as
soon as it is ready
muted Allows to mute the video initially, if this attribute is existing
controls Allows displaying the controls of the video, if the attribute
exists
loop Specifies that the browser should repeat playing the
existing video once more if the loop attribute exists and
accepts a boolean value
preload Specifies whether the video should be loaded or not when
the page is loaded
src Specifies the location of the video file to be embedded
Questions?
Presented by Muhammad Ehtisham Siddiqui (BSCS)
12

More Related Content

PPTX
Presentation of web designing
PPT
ARTIFICIAL INTELLIGENCE.PPT
PPTX
HTML Forms
PPTX
website planning and creation for beginners
PPTX
Java(Polymorphism)
DOC
Web Design Notes
PPTX
Communication skills class -X
Presentation of web designing
ARTIFICIAL INTELLIGENCE.PPT
HTML Forms
website planning and creation for beginners
Java(Polymorphism)
Web Design Notes
Communication skills class -X

What's hot (20)

PPTX
HTML5 audio & video
PPTX
Html media
PPTX
PPTX
Html ppt
PPTX
Lecture 2 introduction to html
PPTX
PPT
Introduction to HTML5
PPTX
Web Page Designing Using HTML
PPTX
Css ppt
PPTX
The Complete HTML
PDF
Basic Details of HTML and CSS.pdf
PDF
Intro to HTML and CSS basics
PPTX
An Overview of HTML, CSS & Java Script
PPT
HTML Tags
PPTX
HTML Text formatting tags
PPTX
Html images syntax
ODP
PPT
Html & Css presentation
PPTX
How to learn HTML in 10 Days
HTML5 audio & video
Html media
Html ppt
Lecture 2 introduction to html
Introduction to HTML5
Web Page Designing Using HTML
Css ppt
The Complete HTML
Basic Details of HTML and CSS.pdf
Intro to HTML and CSS basics
An Overview of HTML, CSS & Java Script
HTML Tags
HTML Text formatting tags
Html images syntax
Html & Css presentation
How to learn HTML in 10 Days
Ad

Similar to Html audio video (20)

PPTX
Lecture9 web design and development
PPTX
HTML 5: Audio And Video
PPT
Intro to HTML5 audio tag
PPTX
Replacing flash with HTML5 and CSS3
PPTX
HTML Video and Audio.pptx( code of enter html video and audio)
PPTX
HTML Media
PDF
HTML5 Multimedia: where we are, where we're going
PDF
Craft 2019 - “The Upside Down” Of The Web - Video technologies
PDF
Unit 2.8 Multimedia Objects
PPTX
Html multimedia tag
PDF
PPTX
Designing web pages html videos
PPTX
HTML Multimedia.pptx
PPTX
Use of Multimedia tag in HTML using exmples
PDF
Basics of HTML5 for Phonegap
PDF
HTML5 multimedia - where we are, where we're going
PPT
Chapter 11 - Web Design
PPT
Working with Video and Audio
PPTX
The Rich Standard: Getting Familiar with HTML5
Lecture9 web design and development
HTML 5: Audio And Video
Intro to HTML5 audio tag
Replacing flash with HTML5 and CSS3
HTML Video and Audio.pptx( code of enter html video and audio)
HTML Media
HTML5 Multimedia: where we are, where we're going
Craft 2019 - “The Upside Down” Of The Web - Video technologies
Unit 2.8 Multimedia Objects
Html multimedia tag
Designing web pages html videos
HTML Multimedia.pptx
Use of Multimedia tag in HTML using exmples
Basics of HTML5 for Phonegap
HTML5 multimedia - where we are, where we're going
Chapter 11 - Web Design
Working with Video and Audio
The Rich Standard: Getting Familiar with HTML5
Ad

More from Muhammad Ehtisham Siddiqui (20)

PPTX
C programming Tutorial Session 4
PPTX
C programming Tutorial Session 4
PPTX
C programming Tutorial Session 3
PPTX
C programming Tutorial Session 2
PPTX
C programming Tutorial Session 1
PPTX
HTML5 Web storage
PPTX
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
PPTX
JavaScript Session 2
PPTX
JavaScript Session 3
PPTX
Javascript session 1
PPTX
Html 5 geolocation api
PPTX
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
PPTX
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
PPTX
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
PPTX
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
PPTX
Building Next Generation Websites Session6
PPTX
Building Next Generation Websites Session5
PPTX
Building Next Generation Websites Session4
PPTX
Office session14
C programming Tutorial Session 4
C programming Tutorial Session 4
C programming Tutorial Session 3
C programming Tutorial Session 2
C programming Tutorial Session 1
HTML5 Web storage
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
JavaScript Session 2
JavaScript Session 3
Javascript session 1
Html 5 geolocation api
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session6
Building Next Generation Websites Session5
Building Next Generation Websites Session4
Office session14

Recently uploaded (20)

DOCX
Ibrahim Suliman Mukhtar CV5AUG2025.docx
PDF
The TKT Course. Modules 1, 2, 3.for self study
PPTX
Reproductive system-Human anatomy and physiology
PDF
Compact First Student's Book Cambridge Official
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PDF
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
PDF
PUBH1000 - Module 6: Global Health Tute Slides
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PPTX
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
PPTX
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
CAPACITY BUILDING PROGRAMME IN ADOLESCENT EDUCATION
PPTX
Thinking Routines and Learning Engagements.pptx
PDF
0520_Scheme_of_Work_(for_examination_from_2021).pdf
PDF
African Communication Research: A review
PDF
THE CHILD AND ADOLESCENT LEARNERS & LEARNING PRINCIPLES
PPTX
2025 High Blood Pressure Guideline Slide Set.pptx
PPTX
Macbeth play - analysis .pptx english lit
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
Ibrahim Suliman Mukhtar CV5AUG2025.docx
The TKT Course. Modules 1, 2, 3.for self study
Reproductive system-Human anatomy and physiology
Compact First Student's Book Cambridge Official
faiz-khans about Radiotherapy Physics-02.pdf
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
PUBH1000 - Module 6: Global Health Tute Slides
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
CAPACITY BUILDING PROGRAMME IN ADOLESCENT EDUCATION
Thinking Routines and Learning Engagements.pptx
0520_Scheme_of_Work_(for_examination_from_2021).pdf
African Communication Research: A review
THE CHILD AND ADOLESCENT LEARNERS & LEARNING PRINCIPLES
2025 High Blood Pressure Guideline Slide Set.pptx
Macbeth play - analysis .pptx english lit
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf

Html audio video

  • 1. HTML AUDIO & VIDEO SESSION 11 Aptech Computer Education Presented by Muhammad Ehtisham Siddiqui (BSCS) 1
  • 2. Objectives  Describe the need for multimedia in HTML5  List the supported media types in HTML5  Explain the audio elements in HTML5  Explain the video elements in HTML5  Explain the accessibility of audio and video elements  Describe how to deal with non-supporting browsers Presented by Muhammad Ehtisham Siddiqui (BSCS) 2
  • 3. Introduction Presented by Muhammad Ehtisham Siddiqui (BSCS) 3  Traditionally, Web browsers were capable of handling only graphics and text  Suppose, if a user had to play some video, then, a distinct program, plug-in, or an ActiveX control had to be installed.  Earlier, Web designers and Web developers used to set up Web pages to play audio and video on the Web using Adobe Flash player.  Multimedia is a combination of various elements such as video, graphics, sound, and text. A common way of inserting a multimedia content on Web pages is by embedding a video or audio file in the Web page.
  • 4. Multimedia Support Presented by Muhammad Ehtisham Siddiqui (BSCS) 4 Container Video Codec Audio Codec Mp4 H.264 AAC Ogg Theora Vorbis WebM VP8 Vorbis
  • 5. Audio in HTML5 Presented by Muhammad Ehtisham Siddiqui (BSCS) 5  The <audio> element will help the developer to embed music on the Web site and allow the user to listen to music.  The <audio> element is one of the best features in HTML5.  This feature allows the user to enable a native audio file within the Web browser.  The <audio> tag specifies the audio file to be used in the HTML document.  The src attribute is used to link to the audio file.
  • 6. Audio in HTML5(Code) Presented by Muhammad Ehtisham Siddiqui (BSCS) 6 <!DOCTYPE html> <html> <head> <title>audio element</title> </head> <body> <audio src=”d:sourcecodesaudio.mp3” controls autoplay loop> html5 audio not supported </audio> </body> </html>
  • 7. Audio Attributes in HTML5 Presented by Muhammad Ehtisham Siddiqui (BSCS) 7 Audio Attributes Description autoplay This attribute identifies whether to start the audio or not once the object is loaded. The attribute accepts a boolean value which when specified will automatically start playing the audio as soon as possible without stopping autobuffer This attribute starts the buffering automatically controls This attribute identifies the audio playback controls that should be displayed such as resume, pause, play, and volume buttons preload This attribute identifies whether the audio has to be loaded when the page loads and is ready to execute. This preload attribute is ignored if autoplay exists src This attribute specifies the location or the URL of the audio file that has to be embedded
  • 8. Videos in HTML 5 Presented by Muhammad Ehtisham Siddiqui (BSCS) 8  The <video> element is a new feature added in HTML5.  The user can use the <video> element for embedding the video content on the Web page.  The easiest way to specify the video is by using the src attribute which give the URL of the video file to be used.  Suppose, if the browser does not support the <video> element then the content between the start tag and end tag is displayed on the browser.
  • 9. Videos in HTML 5 (Code) Presented by Muhammad Ehtisham Siddiqui (BSCS) 9 <!DOCTYPE HTML> <html> <head> </head> <body> <video src=”D:Source codesmovie.mp4”> Your browser does not support the video. </video> </body> </html>
  • 10. Videos in HTML 5 (Code 2) Presented by Muhammad Ehtisham Siddiqui (BSCS) 10 <!DOCTYPE HTML> <html> <head> </head> <body> <video height=“200” width=“200” controls> <source src=”myvideo.mp4” type=”video/mp4”> <source src=”myvideo.webm” type=”video/webm”> <track src=”eng.vtt” label=”English p subtitles” kind=”subtitles” srclang=”en” > </video> </body> </html>
  • 11. HTML5 Video Attributes Presented by Muhammad Ehtisham Siddiqui (BSCS) 11 Attribute Description autoplay Specifies that the browser will start playing the video as soon as it is ready muted Allows to mute the video initially, if this attribute is existing controls Allows displaying the controls of the video, if the attribute exists loop Specifies that the browser should repeat playing the existing video once more if the loop attribute exists and accepts a boolean value preload Specifies whether the video should be loaded or not when the page is loaded src Specifies the location of the video file to be embedded
  • 12. Questions? Presented by Muhammad Ehtisham Siddiqui (BSCS) 12

Editor's Notes

  • #2: Presentation slide for courses, classes, lectures et al.
  • #3: Beginning course details and/or books/materials needed for a class/project.
  • #4: Beginning course details and/or books/materials needed for a class/project.
  • #5: Beginning course details and/or books/materials needed for a class/project.
  • #6: Beginning course details and/or books/materials needed for a class/project.
  • #7: Beginning course details and/or books/materials needed for a class/project.
  • #8: Beginning course details and/or books/materials needed for a class/project.
  • #9: Beginning course details and/or books/materials needed for a class/project.
  • #10: Beginning course details and/or books/materials needed for a class/project.
  • #11: Beginning course details and/or books/materials needed for a class/project.
  • #12: Beginning course details and/or books/materials needed for a class/project.
  • #13: Example graph/chart.