

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- How to embed youtube as an audio player?
- What are Web Pages?
- How to keep audio playing while navigating through pages?
- How to play HTML5 Audio Randomly
- How do we embed custom data attributes on all HTML elements?
- HTML5 Audio to Play Randomly
- HTML5 audio control stop button
- How to detect HTML5 audio MP3 support
- How can we use hub pages to find authoritative pages?
- HTML5 audio not playing in PhoneGap App
- 3d web pages products showcase (future tech)
- Difference between Static and Dynamic Web Pages
- HTML5 check if audio is playing
- Stop Web Workers in HTML5
- How to create a responsive contact section for web pages?
Advertisements