Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
How can we embed Audio in HTML 5?
Sanjeev Vishwakarma
7y
204
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
HTML 5 comes with a standard way of embedding audio files as previously we don’t have any such support on a web page. Supported audio formats are as follows: MP3 Wav Ogg. Syntax:
Your browser does’nt support audio embedding feature.
Description: src value can be relative as well as absolute URL. We can also use multiple
elements pointing to different audio files. controls – it adds controls such as volume, play and pause. autoplay – it’s a boolean value which specifies that audio will start playing once it’s ready. loop – it’s also a boolean value which specifies looping (means it automatically start playing after it ends). preload – auto, metadata and none are the possible values for this attribute. auto means plays as it loaded. metadata displays audio file’s associated data none means not pre-loaded.
Sanjeev Vishwakarma
7y
0
Message