HTML MCQs – HTML5 Features

21.) Which HTML5 element is used to define a group of related links within a document?

A) <link>
B) <nav>
C) <list>
D) <group>

Answer: Option B

Explanation: The <nav> element in HTML5 is used to define a group of related links within a document, typically used for navigation menus or link lists.

22.) What is the purpose of the HTML5 <template> element.

A) To define a container for reusable content that can be cloned and inserted into the document
B) To define a container for audio content
C) To define a container for video content
D) To define a container for multimedia content

Answer: Option A

Explanation: The <template> element in HTML5 is used to define a container for reusable content that can be cloned and inserted into the document dynamically using JavaScript.

23.) Which HTML5 attribute is used to specify a value for a progress bar element?

A) value
B) progress
C) status
D) load

Answer: Option A

Explanation: The “value” attribute is used to specify a value for a progress bar element in HTML5, indicating the current progress of a task or operation.

24.) Which HTML5 element is used to define a container for metadata about an HTML document?

A) <meta>
B) <metadata>
C) <info>
D) <head>

Answer: Option A

Explanation: The <meta> element in HTML5 is used to define metadata about an HTML document, such as character encoding, viewport settings, or authorship information.

25.) What is the purpose of the HTML5 element when used within <audio> or <video> element.

A) To define a source URL for multimedia files
B) To define a container for audio content
C) To define a container for video content
D) To define a container for metadata

Answer: Option A

Explanation: The <source> element in HTML5 is used within <audio> or <video> elements to define multiple source URLs for multimedia files, providing compatibility across different browsers and formats.

Leave a Reply

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