Explore topic-wise MCQs in Html.

This section includes 110 Mcqs, each offering curated multiple-choice questions to sharpen your Html knowledge and support exam preparation. Choose a topic below to get started.

51.

The ____________ method must create a new clipping region by calculating the intersection of the current clipping region and the area described by the current path, using the non-zero winding number rule.%!

A. fill()
B. stroke()
C. clip()
D. none of the mentioned
Answer» D. none of the mentioned
52.

Which of the following statement is not true?%!

A. SVG stands for Scalable Vector Graphics
B. SVG is used to define graphics for the Web
C. SVG is a W3C recommendation
D. All of the mentioned
Answer» E.
53.

Which element may be used within content to represent material that is tangential?%!

A. aside
B. cite
C. article
D. class
Answer» B. cite
54.

In HTML Audio/Video DOM, __________ sets or returns the CORS settings of the audio/video.%!

A. currentTime
B. duration
C. defaultPlaybackRate
D. crossOrigin
Answer» E.
55.

Which element serves as a container for atomic filter operations.%!

A. filter
B. feimage
C. feblend
D. tref
Answer» B. feimage
56.

Which of the following type attributes of input element defines control for entering a telephone number?%!

A. mob
B. tel
C. mobile
D. telephone
Answer» C. mobile
57.

All elements are identified by their __________ and are marked up using either start tags and end tags or self-closing tags%!

A. attribute name
B. tag name
C. class name
D. none of the mentioned
Answer» C. class name
58.

Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?%!

A. data-X
B. header
C. mark
D. meter
Answer» C. mark
59.

*$_Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content??

A. data-X
B. header
C. mark
D. meter
Answer» C. mark
60.

*$_Which attribute specifies that the video will be loaded at page load, and ready to run. Ignored if autoplay is present.?

A. loop
B. src
C. preload
D. poster
Answer» D. poster
61.

*$_Which event will be used when a connection to the server is opened.?

A. onopen
B. onmessage
C. onerror
D. None of the above
Answer» B. onmessage
62.

*$_Which of the following type attributes of input element defines control for entering a telephone number??

A. mob
B. tel
C. mobile
D. telephone
Answer» C. mobile
63.

*$_All elements are identified by their __________ and are marked up using either start tags and end tags or self-closing tags?

A. attribute name
B. tag name
C. class name
D. none of the mentioned
Answer» C. class name
64.

*$_Which element serves as a container for atomic filter operations.?

A. filter
B. feimage
C. feblend
D. tref
Answer» B. feimage
65.

*/*_The ____________ method must create a new clipping region by calculating the intersection of the current clipping region and the area described by the current path, using the non-zero winding number rule.?

A. fill()
B. stroke()
C. clip()
D. none of the mentioned
Answer» D. none of the mentioned
66.

*/*_Which element may be used within content to represent material that is tangential??

A. aside
B. cite
C. article
D. class
Answer» B. cite
67.

*/*_Which of the following statement is not true??

A. SVG stands for Scalable Vector Graphics
B. SVG is used to define graphics for the Web
C. SVG is a W3C recommendation
D. All of the mentioned
Answer» E.
68.

*/*_In HTML Audio/Video DOM, __________ sets or returns the CORS settings of the audio/video.?

A. currentTime
B. duration
C. defaultPlaybackRate
D. crossOrigin
Answer» E.
69.

*/*_Which is a JavaScript running in the background, without affecting the performance of the page.?

A. Web Worker
B. Canvas
C. SVG
D. None of the above
Answer» B. Canvas
70.

*/*___________ defines the accelerator key to be used for keyboard access to an element.?

A. data-X
B. accesskey
C. rp
D. command
Answer» C. rp
71.

%___________ defines the accelerator key to be used for keyboard access to an element._%

A. data-X
B. accesskey
C. rp
D. command
Answer» C. rp
72.

_ HTML5 features, include native audio and video support without the need for.$?

A. Flash
B. Canvas
C. Svg
D. None of the above
Answer» B. Canvas
73.

_ Which is a JavaScript running in the background, without affecting the performance of the page.$?

A. Web Worker
B. Canvas
C. SVG
D. None of the above
Answer» B. Canvas
74.

_ Which type attribute of input element sets the element’s value to a string representing a number?$?

A. range
B. email
C. file
D. date
Answer» B. email
75.

_ __________ allows the iframe to pull in content from elsewhere in the same domain.$?

A. allow-same-origin
B. allow-forms
C. allow-scripts
D. none of the mentioned
Answer» B. allow-forms
76.

_ Which element must reference a resource that can provide an image for the cursor graphic?$?

A. hover
B. i
C. cursor
D. fill
Answer» D. fill
77.

_ When the _____________ method is passed an animated image as its image argument, the user agent must use the poster frame of the animation, or, if there is no poster frame, the first frame of the animation.$?

A. measureText()
B. imageData()
C. drawImage()
D. none of the mentioned
Answer» D. none of the mentioned
78.

_ HTML5 documents may contains a ___________ element, which is used to set the header section of a document.$?

A. header
B. footer
C. section
D. none of the mentioned
Answer» B. footer
79.

_ In HTML Audio/Video DOM, __________ returns a TextTrackList object representing the available text tracks.$?

A. readyState
B. startDate
C. videoTracks
D. textTracks
Answer» E.
80.

_ In HTML Audio/Video DOM, __________ sets or returns the default speed of the audio/video playback.$?

A. currentTime
B. duration
C. defaultPlaybackRate
D. playbackRate
Answer» D. playbackRate
81.

__Which of the following is not a newly added element in HTML5?__

A. article
B. audio
C. nav
D. frameset
Answer» E.
82.

_Which is not suited for game applications?$?

A. Canvas
B. Svg
C. Both A & B
D. None of the above
Answer» C. Both A & B
83.

_Which of the following attribute triggers event after the document is printed?$?

A. offlineprint
B. onprint
C. onafterprint
D. onbeforeprint
Answer» D. onbeforeprint
84.

_A ____________ element must have a start tag but must not have an end tag.$?

A. details
B. command
C. code
D. both a and b
Answer» C. code
85.

_Which of the following allows the sandboxed iframe to run scripts from the same domain?$?

A. allow-same-origin
B. allow-forms
C. allow-scripts
D. none of the mentioned
Answer» D. none of the mentioned
86.

________ drawings can be dynamic and interactive.$?

A. Canvas based
B. SVG
C. CSS3
D. JavaScript
Answer» C. CSS3
87.

Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?$?

A. strokeRect(x, y, w, h)
B. clearRect(x, y, w, h)
C. fillRect(x, y, w, h)
D. none of the mentioned
Answer» C. fillRect(x, y, w, h)
88.

Which element is used to define a discrete unit of content such as a blogpost, comment, and so on?$?

A. section
B. class
C. article
D. none of the mentioned
Answer» C. article
89.

In HTML Audio/Video DOM, __________ returns a MediaError object representing the error state of the audio/video.$?

A. ended
B. seeking
C. error
D. mediaGroup
Answer» D. mediaGroup
90.

Which of the following HTML Video – Media Type is not supported in IE?$?

A. WebM
B. MP4
C. Ogg
D. None of the mentioned
Answer» D. None of the mentioned
91.

Which method retrieves periodic updates about the current geographic location of the device.$?

A. getCurrentPosition()
B. watchPosition()
C. clearWatch()
D. All the mentioned above
Answer» C. clearWatch()
92.

Which of the following is/are the property of SVG images?$?

A. SVG images are scalable
B. SVG images are zoomable
C. SVG is an open standard
D. All of the mentioned
Answer» E.
93.

The interactive element audio with the attribute controls must not appear as a descendant of which element?$?

A. a
B. button
C. audio
D. both a and b
Answer» E.
94.

The __________ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe$?

A. allow-forms
B. seamless
C. embed
D. none of the mentioned
Answer» C. embed
95.

Which of the following element is removed by HTML5?$?

A. vlink
B. dir
C. marginwidth
D. compact
Answer» C. marginwidth
96.

Which of the following element is removed by HTML5??

A. vlink
B. dir
C. marginwidth
D. compact
Answer» C. marginwidth
97.

A semantic element clearly describes its meaning to?

A. Browser
B. Developer
C. Both A & B
D. None of the above
Answer» D. None of the above
98.

Which method retrieves periodic updates about the current geographic location of the device.?

A. getCurrentPosition()
B. watchPosition()
C. clearWatch()
D. All the mentioned above
Answer» C. clearWatch()
99.

The interactive element audio with the attribute controls must not appear as a descendant of which element??

A. a
B. button
C. audio
D. both a and b
Answer» E.
100.

The __________ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe?

A. allow-forms
B. seamless
C. embed
D. none of the mentioned
Answer» C. embed