HTML
- Introduction To HTML
- HTML Editors
- HTML Basic Examples
- HTML Elements
- HTML Attributes
- HTML Headings
- HTML Paragraphs
- HTML Styles
- HTML Formatting Elements
- HTML Quotation
- HTML Comments
- HTML Colors
- HTML Styles - CSS
- HTML Links
- HTML Images
- HTML Tables
- HTML Lists
- HTML Block And Inline
- HTML Class
- HTML Id
- HTML Iframes
- HTML JavaScript
- HTML File Paths
- HTML Head
- HTML Layout
- HTML Responsive
- HTML Computer Code
- HTML Semantic
- HTML Forms
- HTML Form Attributes
- HTML Form Elements
- HTML Input Types
- HTML Input Attributes
- HTML Input Form Attributes
- HTML Canvas
- HTML SVG
- HTML Media
- HTML Video
- HTML Audio
- HTML YouTube
HTML Audio
The HTML Audio Element
Use the <audio> element to play an audio file using HTML:
<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="video//video.ogg" type="audio/ogg">
<source src="video/video.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
<html>
<body>
<audio controls>
<source src="video//video.ogg" type="audio/ogg">
<source src="video/video.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
HTML Audio Autoplay
To automatically play an audio file, use the autoplay attribute:
<!DOCTYPE html>
<html>
<body>
<audio controls autoplay>
<source src="video//video.ogg" type="audio/ogg">
<source src="video/video.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
<html>
<body>
<audio controls autoplay>
<source src="video//video.ogg" type="audio/ogg">
<source src="video/video.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
Products
Partner
Copyright © RVR Innovations LLP 2024 | All rights reserved - Mytat.co is the venture of RVR Innovations LLP