Audio and Video Flashcards

1
Q

What is the purpose of the src attribute in the <audio> and <video> elements?

A

The src attribute is used to embed media, such as audio or video, by specifying the media file’s location.

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

What does the controls attribute do in the <audio> and <video> elements?

A

The controls attribute displays player controls, allowing users to control playback (play, pause, volume).

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

What does the autoplay attribute do in the <audio> and <video> elements?

A

The autoplay attribute starts the media playback automatically when the page is loaded.

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

What is the function of the <track> element in <audio> and <video> elements?

A

The <track> element adds timed text tracks like subtitles, specifying the language and file source.

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

How can multiple media sources be provided for <video>?

A

Multiple media sources can be provided using <source> elements inside the <video> tag, each with different src and type attributes.

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

What is the poster attribute used for in the <video> element?

A

The poster attribute specifies an image to be shown before the video loads.

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

What is the purpose of the preload attribute in <audio> and <video> elements?

A

The preload attribute preloads the media for faster start of playback.

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