Here, we will see the implementation and use of <source> tag in HTML5. It is used for embedding media resource in media element. It is not available in HTML 4.01. It is nothing itself. So media tag(audio or video) is important for <source> tag.
Declaration syntax of source tag in HTML5.
<source src="URL" >
<!doctype html >|
<title>Source Tag </title>
<p><b>Example of source tag in HTML5.</b></p>
<audio controls="controls" >
Browser does not support audio tag.
The audio tag is only available in HTML5. It is not available in HTML4.01.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.