Horje

How to Use of the type attribute - HTML type Attribute

Source Example.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The source type attribute</h1>

<audio controls>
  <source src="https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_5MG.mp3" type="audio/ogg">
  <source src="https://file-examples.com/wp-content/storage/2017/11/file_example_MP3_5MG.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>

</body>
</html>

Output should be:

How to Use of the type attribute - HTML type Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin