- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we embed audio in web pages in HTML5?
Use the <audio> tag to embed audio in a web page in HTML5. You can try to run the following code to implement <audio> tag −
Example
<!DOCTYPE html> <html> <head> <title>HTML audio Tag</title> </head> <body> <p>Click on Play button...</p> <p>(Song: Kalimba which is provided as a Sample Music in Windows)</p> <audio controls> <source src = "/html/Kalimba.mp3" type = "audio/mpeg"> </audio> </body> </html>
- Related Articles
- How to embed youtube as an audio player?
- How to keep audio playing while navigating through pages?
- How to play HTML5 Audio Randomly
- What are Web Pages?
- How do we embed custom data attributes on all HTML elements?
- How to detect HTML5 audio MP3 support
- HTML5 audio not playing in PhoneGap App
- HTML5 Audio to Play Randomly
- HTML5 audio control stop button
- How can we use hub pages to find authoritative pages?
- Stop Web Workers in HTML5
- HTML5 check if audio is playing
- How can I use Web Workers in HTML5?
- How to handle errors in HTML5 Web Workers?
- How to check web browser support in HTML5

Advertisements