HTML ADVANCED Flashcards
Tag for video
<video>
</video>
Common video formats are:
MP4, OGG and WebM
Create a tag for a video in MP4.
<video>
<sourcesrc="file.mp4"
type="video/mp4">
</video>
src attributes for videos
src=”file.(type)”
type attributes for videos
type=”video/(type)”
Where to add text for when it doesn’t work?
Between the last source and the closing tag
Where do we put the controls attributes?
In the <video> or <audio> opening tag</audio></video>
How to add audio in mp3 format?
<audio>
<sourcesrc="audiofile.mp3"
type="audio/mpeg">
</audio>
3 common audio formats
MP3, OGG, WAV
For <video> and <audio>, if you put more than one source, which one of them will be displayed?</audio></video>
The first one
How not to have sound?
muted attribute
How to start playing automatically?
autoplay attribute
How to make it repeat?
loop attribute
How to have control?
control attribute
3 parts of the body
<header>
<main>
<footer>
</footer></main></header>
What types of information are in the header?
Navigation links, a menu and/or a search bar, logo, etc.
What types of information are in the footer?
Contact and legal information and links