We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

31-HTML Music Codes

In HTML, the embed tag is used to insert music onto a web page. There are so many ways to link to music, but now embed is considered as a standard for inserting media.


Here’s an example of the embed tag with the use of  src attribute which defines the media file’s location.

<embed src="url" />


Here’s an example of customizing the appearance of a media player:

<embed src="url" width="360" height="165" />


Example on how to autostart and repeat a music in media player:

<embed src="url" autostart="true" loop="true" volume="60" />
Facebook Comments
(Visited 3 times, 1 visits today)
Share this

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked * © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!

%d bloggers like this: