HTML Flashcards
1
Q
What are all the Boolean attributes you can add to your video inner html? Why would you use a “source” tag inside a video element instead of using src=“” in the inner HTML?
A
controls
autoplay
mute
loop
Having multiple source elements inside a video element allows for backups in case the browser doesn’t support the video file. It goes from the top down, sort of like giving multiple font styles will choose the first in order that works with the browser.