2.4 Audio & Video Flashcards

(13 cards)

1
Q

What is the <audio> tag used for?</audio>

A

To embed sound files like music or speech on a webpage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the <video> tag used for?</video>

A

To embed videos directly in the webpage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the controls attribute do in <audio> & <video>?</video></audio>

A

Displays playback controls like play, pause, & volume.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the autoplay attribute do?

A

Starts playing the media automatically when the page loads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does the loop attribute do?

A

Makes the media replay automatically after it ends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the muted attribute do?

A

Starts the media in a muted state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the <source></source> element used for in media tags?

A

Allows you to provide multiple file formats for better browser compatilbilty.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you use multiple formats in <video>?</video>

A

<video>
<source></source>
<source></source>
</video>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why include multiple source formats in <video> or <audio>?</audio></video>

A

Ensures cross-browser support, as not all browsers support all formats.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is fallback message in <audio> or <video> tags?</video></audio>

A

Text that displays when the browser doesn’t support the tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which audio formats are most supported in HTML?

A

MP3, Ogg, & WAV.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which video formats are most supported in HTML?

A

MP4 (h.264), WebM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can directly embeding audio & video files to HTML slow down the webpage?

A

Yes, it can significantly slow down a webpage’s loading time, especially if not optimized.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly