What is the significance of the type attribute in a source tag within an audio or video tag?
- It defines the media file's MIME type.
- It provides an alternative text for the media.
- It sets the autoplay behavior.
- It specifies the order of playback.
The type attribute in a source tag within an audio or video tag specifies the media file's MIME type, such as "video/mp4" or "audio/mp3". This informs the browser about the file format and potentially helps it select the most appropriate source when there are multiple source tags provided. This enhances compatibility as different browsers may support different file formats.
Loading...
Related Quiz
- To create a link that sends an email, you use the ______ attribute with a value that starts with mailto:.
- How can a subject be added to the email link using mailto:?
- The ______ attribute in the video tag is used to specify an image to be shown while the video is downloading, or until the user hits the play button.
- HTML comments can be used to _____ sections of code for testing purposes.
- Which input type defines a checkbox?