source tag in html

The <source> tag is used to specify multiple media resources for media elements, such as <video>, <audio>, and <picture>.
The <source> tag allows you to specify alternative video/audio/image files which the browser may choose from, based on its media type, codec support or media query.

<!DOCTYPE html>
<html>
<body>

<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

<p><strong>Note:</strong> The source tag is not supported in Internet 
Explorer 8 and earlier versions.</p>

</body>
</html>



Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag