HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML5 Audio Tag

Audio Tag

 

 

Before HTML5, there was no standard for playing audio files on a web page. The HTML5 audio tag specifies a standard for embedding audio on a web page. It creates an audio player inside the webpage. There are two different ways to specify the audio source URL of the file. The first uses the source attribute and the second uses the source element inside the audio tag.

 

Attribute information:-

 

  • The control attributes are used to give the user access to play/pause the music along with more functionalities.
  •  The loop attribute is used to replay the audio automatically.
  • The autoplay attribute will play the audio automatically and the user does not need to start it.

 

Syntax:-

 

Its syntax is:- < audio >

Code Explanation

All Tutorials related to HTML Advance

All Sections related to HTML