How to Install Music / Audio in Blog Valid Blogspot Template AMP


Do you want to install the music feature on the blog and a valid AMP template?

In this post I will help you to give the tutorial. This is easy and fast to do. Follow coherently and correctly!

The <amp-audio> component can only be used for HTML5 embeds audio files

How to Install Music / Audio in Blog Valid Blogspot Template AMP

Add the following code to <head> ... </head>

<script async="async" custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-0.1.js"></script>

Copy the following code in the HTML post or sidebar section:

<amp-audio width="auto"
height="50"
src="https://yourhost.com/filename.mp3">
</amp-audio>

Change the audio link on src = with the audio source that you want to pair. No need to add layout = "responsive" code, because this is automatically responsive.

Done

Well, that's how to install audio / song on the AMP template to be valid.

DEMO