1

Which of the following HTML5 tags is used to define a header for a section or document?

A.
B.
C.
D.
Answer & Solution
Solution:

The <header> tag is used to define introductory content, such as navigation links or logo information, typically appearing at the top of a section or document.

2

             HTML5 elements is used to embed SVG graphics?

A.
B.
C.
D.
Answer & Solution
Solution:

The <svg> tag is used to define Scalable Vector Graphics (SVG) directly in the HTML document.

3

How do you make an HTML element draggable in HTML5?

A.
B.
C.
D.
Answer & Solution
Solution:

The draggable="true" attribute makes an HTML element draggable using the mouse.

4

What does the <source> tag do in an HTML5 video or audio element?

A.
B.
C.
D.
Answer & Solution
Solution:

The <source> tag inside <video> or <audio> specifies the path to the media file and allows multiple formats to be provided for compatibility.

5

How can you enable validation for an input field to only accept numeric values?

A.
B.
C.
D.
Answer & Solution
Solution:

The type="number" input field allows only numeric input, and can also specify a range with the min and max attributes.

6

How can you define a link to an anchor within the same HTML page?

A.
B.
C.
D.
Answer & Solution
Solution:

Using the href="#section" links to an anchor within the same page, where the target anchor is defined by an element with the id="section" attribute.

7

Which of the following attributes can be used to specify the maximum value for an <input> element?

A.
B.
C.
D.
Answer & Solution
Solution:

The max attribute is used with input types like number, range, and date to set the maximum allowable value.

8

What is the correct way to add a description to a video element in HTML5?

A.
B.
C.
D.
Answer & Solution
Solution:

The <track> tag inside a <video> element is used to specify text tracks for captions, subtitles, or descriptions.

9

Which tag is used to display content as a dialog box in HTML5?

A.
B.
C.
D.
Answer & Solution
Solution:

The <dialog> tag in HTML5 is used to define a dialog box or popup that can be shown or hidden dynamically with JavaScript.

10

Which HTML5 input type is used for entering a date?

A.
B.
C.
D.
Answer & Solution
Solution:

The <input type="date"> tag allows users to select a date from a calendar in supported browsers.