video element html quiz

Video & Image Element in HTML Quiz,20 MCQs

Welcome to the Video & Image Element in HTML Quiz! This quiz is designed to test your knowledge of some of the most overlooked yet important aspects of working with the <video> and <img> elements in HTML.

video element html quiz

Video & Image Element in HTML Quiz

Test your knowledge with a Quiz to better understand ,where you stand.

1 / 20

What is the effect of using the decoding="async" attribute in an <img> tag?

2 / 20

Which attribute of the <img> tag can be used to specify a space between the image and its border?

3 / 20

How can you ensure an image scales properly on high-resolution devices?

4 / 20

What is the purpose of the ismap attribute in an <img> element?

5 / 20

What does the sizes attribute in the <img> tag define?

6 / 20

Which value of the loading attribute loads the image only when the user scrolls near it?

7 / 20

How does the loading attribute in the <img> tag improve performance?

8 / 20

What happens if the alt attribute is omitted in an <img> tag?

9 / 20

Which attribute is used to provide a brief text alternative for an image, beneficial for accessibility?

10 / 20

What is the purpose of the srcset attribute in an <img> tag?

11 / 20

What is the correct way to support different video formats in HTML?

12 / 20

What does the poster attribute in a <video> element do?

13 / 20

Which event is triggered when the video has been paused?

14 / 20

How can you make a video responsive in terms of width?

15 / 20

Which attribute allows a video to play on a loop?

16 / 20

What happens when the autoplay attribute is used without the muted attribute in modern browsers?

17 / 20

What is the purpose of the preload attribute in a <video> tag?

18 / 20

Which attribute controls whether video controls like play, pause, and volume are visible to the user?

19 / 20

What happens if none of the provided video formats are supported by the browser?

20 / 20

Which attribute specifies multiple media resources for a <video> element, offering different formats?

Your score is

The average score is 58%

0%

Check other quizzes.

Learn more about Video & Image Elements.

Visit our Homepage to get the latest updates.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *