HTML <source > tagHTML <source> tag is used as a child element to define more than one media resources for <audio>, <video>, and <picture> element. It is used to provide the same media content with different formats such as mp3, mp4, etc. When we embed multiple resources with the same content but different format then the browser may choose the most compatible format and display or play that media file. The <source> tag was introduced in HTML5. SyntaxFollowing are some specifications about the HTML <source> tag
ExampleTest it NowOutput: Attribute:Tag-specific attributes:
Global attribute:The <source> tag supports the Global attributes in HTML. Event attribute:The <source> tag supports the Event attributes in HTML. Supporting Browsers
Next TopicHTML span Tag |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India