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.

1.

The HTML canvas is a

A. hree-dimensional grid
B. ne-dimensional grid
C. wo-dimensional grid
D. one of the above
Answer» D. one of the above
2.

The canvas element has a DOM method it is called.

A. etContext
B. etId
C. etElement
D. one of the above
Answer» B. etId
3.

Which method is used to increase or decrease the units in a canvas grid.

A. anvas Transform
B. anvas Rotation
C. anvas Scaling
D. anvas Composition
Answer» D. anvas Composition
4.

Which event will be used when a connection to the server is opened.

A. nopen
B. nmessage
C. nerror
D. one of the above
Answer» B. nmessage
5.

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

A. eb Worker
B. anvas
C. VG
D. one of the above
Answer» B. anvas
6.

Which of the following attribute triggers event after the document is printed?

A. fflineprint
B. nprint
C. nafterprint
D. nbeforeprint
Answer» D. nbeforeprint
7.

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

A. etCurrentPosition()
B. atchPosition()
C. learWatch()
D. ll the mentioned above
Answer» C. learWatch()
8.

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

A. oop
B. rc
C. reload
D. oster
Answer» D. oster
9.

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

A. lash
B. anvas
C. vg
D. one of the above
Answer» B. anvas
10.

Which is not suited for game applications?

A. anvas
B. vg
C. oth A & B
D. one of the above
Answer» C. oth A & B
11.

A semantic element clearly describes its meaning to

A. rowser
B. eveloper
C. oth A & B
D. one of the above
Answer» D. one of the above
12.

To insert a video, we use a video tag and set its src attribute to a local or remote URL containing a playable movie.

A. rue
B. alse
Answer» B. alse
13.

The World Wide Web’s markup language has always been HTML.

A. rue
B. alse
Answer» B. alse
14.

The HTML canvas is a%!

A. Three-dimensional grid
B. One-dimensional grid
C. Two-dimensional grid
D. None of the above
Answer» D. None of the above
15.

The canvas element has a DOM method it is called.%!

A. getContext
B. getId
C. getElement
D. None of the above
Answer» B. getId
16.

Which method is used to increase or decrease the units in a canvas grid.%!

A. Canvas Transform
B. Canvas Rotation
C. Canvas Scaling
D. Canvas Composition
Answer» D. Canvas Composition
17.

Which SVG element produces the same effect as if the nodes were deeply cloned into a non-exposed DOM?%!

A. tref
B. use
C. stroke
D. bin
Answer» C. stroke
18.

Which of the following element marks the ruby text component of a ruby annotation?%!

A. r
B. rt
C. ruby
D. rubytxt
Answer» C. ruby
19.

The new __________ element is supposed to represent some form of extra details, such as a tooltip or revealed region that may be shown to a user.%!

A. progress
B. meter
C. details
D. menu
Answer» D. menu
20.

Which plugins can provide the fallback support for old browsers?%!

A. Flash
B. Quicktime
C. both and b
D. none of the mentioned
Answer» D. none of the mentioned
21.

To insert a video, we use a video tag and set its src attribute to a local or remote URL containing a playable movie.%!

A. True
B. False
Answer» B. False
22.

Which of the following attribute adds audio controls, like play, pause, and volume?%!

A. audio
B. controls
C. source
D. src
Answer» C. source
23.

Which property of SVG restricts the region to which paint can be applied?%!

A. animateTransform
B. clip-Path
C. linearGradient
D. radialGradient
Answer» C. linearGradient
24.

Which element(s) represents a section of a document that links to other documents?%!

A. navigation
B. anchor tag
C. nav
D. option
Answer» D. option
25.

Which of the following is not a type of attribute for input tag?%!

A. day
B. week
C. month
D. time
Answer» B. week
26.

State true or False. “Prior to HTML5 in web market, traditionally, multimedia has been inserted with the concept of tag-based multimedia back”.%!

A. True
B. False
Answer» C.
27.

Which of the following element is used for highlighting content similarly to how a highlighter pen might be used on important text in a book?%!

A. em
B. strong
C. mark
D. none of the mentioned
Answer» D. none of the mentioned
28.

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

A. src
B. volume controls
C. volume
D. video Tracks
Answer» D. video Tracks
29.

__________ is a JavaScript library that implements the most common user interface elements and interactions like sliders, accordions, tabs, and so on.%!

A. JavaScript
B. JQuery UI
C. VTS
D. JCL
Answer» C. VTS
30.

SVG also stands for Scalar Vector Graphics%!

A. True
B. False
Answer» C.
31.

Which element represents marked or highlighted text for reference purposes?%!

A. highlight
B. mark
C. strong
D. blink
Answer» C. strong
32.

An API is an application programming interface consisting of methods and properties which allow the author to get or set data or execute commands to the user agent.%!

A. True
B. False
Answer» B. False
33.

The _________ element is used to render simple graphics such as line art, graphs, and other custom graphical elements on the client side.%!

A. metadata
B. css
C. canvas
D. art
Answer» D. art
34.

The element ___________ simply groups items within an enclosed dd tag, though it may associate them with a caption defined by a dt tag%!

A. object
B. figure
C. embed
D. none of the mentioned
Answer» B. figure
35.

Which protocol is supported by Android browsers?%!

A. HTTPS
B. HLS
C. RTMP
D. FTP
Answer» C. RTMP
36.

The ___________ element must reference a ‘linearGradient’ or ‘radialGradient’ element.%!

A. script
B. radialGradient
C. animateTransform
D. clip-Path
Answer» C. animateTransform
37.

The World Wide Web’s markup language has always been HTML.%!

A. True
B. False
Answer» B. False
38.

Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?%!

A. closePath()
B. beginPath()
C. moveTo(x, y)
D. none of the mentioned
Answer» C. moveTo(x, y)
39.

__________ can be used to advise the browser to download media content in the background to improve playback.%!

A. poster
B. autobuffer
C. buffer
D. data-X
Answer» C. buffer
40.

Which of the following attribute is used to display date/time content?%!

A. time
B. datetime
C. date
D. year
Answer» C. date
41.

There is an audio format supported across all browsers.%!

A. True
B. False
Answer» C.
42.

State whether the given statement is true or false. “HTML5 brings to the Web video and audio tracks without needing plugins”.%!

A. True
B. False
Answer» B. False
43.

The __________ element must reference either an ‘altGlyphDef’ element or a ‘glyph’ element.%!

A. href
B. src
C. animate
D. altGlyph
Answer» E.
44.

Which element represents a control for generating a public-private key pair?%!

A. ins
B. keygen
C. key
D. command
Answer» C. key
45.

The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.%!

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

Which tag is used to encapsulate navigation and then style the elements appropriately as menu items?%!

A. ul
B. li
C. nav
D. both a and b
Answer» E.
47.

___________ contains the navigation menu, or other navigation functionality for the page.%!

A. section
B. header
C. nav
D. aside
Answer» D. aside
48.

In HTML Audio/Video DOM, __________ returns a TimeRanges object representing the buffered parts of the audio/video.%!

A. preload
B. networkState
C. buffered
D. controller
Answer» D. controller
49.

What more needs to be achieved to fulfil the promises of the Open Web Platform?%!

A. Security and Privacy
B. Performance and Tuning
C. Media and Real-Time Communications
D. All of the mentioned
Answer» E.
50.

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