Explore topic-wise MCQs in Html.

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

201.

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
202.

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

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

Which of the following element is used for canvas graphics?

A. <paint>
B. <canvas>
C. <graphic>
D. <css>
Answer» C. <graphic>
204.

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

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

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
206.

HTML Links can be styled using ___________.

A. CSS
B. JavaScript
C. XML
D. PHP
Answer» B. JavaScript
207.

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
208.

Which tag is used to defines multiple media resources for media elements audio and video ?

A. <source>
B. <canvas>
C. <audio>
D. None of the mentioned
Answer» B. <canvas>
209.

Which of the following tag is used for audio in HTML5 ?

A. <bgsound>
B. <audio>
C. <video>
D. <canvas>
Answer» C. <video>
210.

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
211.

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.
212.

Default attribute value of "target" is ______________ in HTML.

A. _top
B. _blank
C. _self
D. _parent
Answer» D. _parent
213.

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
214.

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
215.

Which of the following is not a HTML5 tag?

A. <video>
B. <source>
C. <track>
D. <slider>
Answer» E.
216.

_________ attribute specifies what media/device the linked document is optimized for ?

A. device
B. media
C. name
D. href
Answer» C. name
217.

________ attribute is used to specify MIME type of linked document ?

A. Rev Attribute
B. Type Attribute
C. Media Attribute
D. MIME Attribute
Answer» C. Media Attribute
218.

Which of the following is incorrect value provided to "rel" attribute of Anchor Tag ?

A. previous
B. license
C. help
D. bookmark
Answer» B. license
219.

Relationship Between the Current document and the Linked document is specified using ___________ attribute.

A. href
B. relation
C. rel
D. target
Answer» D. target
220.

Which of the Anchor Attribute is used to specify the language of the linked document ?

A. alang
B. None of these
C. lang
D. hreflang
Answer» E.
221.

_________ attribute is used to specify , where to open the linked document.

A. target
B. coords
C. rel
D. pos
Answer» B. coords
222.

A linked page using anchor tag is normally displayed in the ____________.

A. New Window
B. Current Window
C. None of these
D. New Tab
Answer» C. None of these
223.

Which of the Attribute(s) Cannot be Present if the href attribute is not present ?

A. target
B. hreflang
C. rel
D. All of these
Answer» E.
224.

Default color of active link in browser is ____________.

A. red
B. blue
C. green
D. brown
Answer» B. blue
225.

Visited Link in Mozilla Firefox is Generally shown in __________ Color.

A. Brown
B. Purple
C. Blue
D. Red
Answer» C. Blue
226.

Default Style and Color of Unvisited Link in any browser is ____________.

A. Normal and Blue
B. Underline and Pink
C. Underline and Magento
D. Underlined and Blue
Answer» E.
227.

Link in HTML can be of following type(s).

A. Visited
B. Active
C. Unvisited
D. All are the Types of Links
Answer» E.
228.

URL in HTML stands for ____________.

A. Uni Resource Locator
B. Uniform Resource Locator
C. Universal Resource Locator
D. None of these
Answer» C. Universal Resource Locator
229.

Value of Attribute "href" is also called as __________ of the Destination Web Page.

A. URM
B. URL
C. URK
D. URS
Answer» C. URK
230.

Following tag Stands for -

A. Active Tag
B. Action Tag
C. Anchor Tag
D. Additional Tag
Answer» D. Additional Tag
231.

HTML Stands for _____________.

A. Hyper Text Makeup Language
B. Hyper Text Markup Language
C. None of these
D. Hyper Tech Markup Language
Answer» C. None of these
232.

HTML is considered as _________ language.

A. Higher Level Language
B. Markup Language
C. OOP Language
D. Programming Language
Answer» C. OOP Language
233.

Which of the following is used to create Web Page.

A. HTML
B. JVM
C. DTD
D. C
Answer» B. JVM
234.

__________ 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
235.

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
236.

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.
237.

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
238.

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

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

__________ 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
240.

Which of the following element is removed by HTML5?

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

Which of the following selector applies styles to elements that are valid per HTML5 validations set either with the pattern or type attributes?

A. :valid
B. :required
C. :optional
D. :invalid
Answer» B. :required
242.

Which of the following selectors selects direct descendents?

A. E > F
B. E F
C. E + F
D. E ~ F
Answer» B. E F
243.

What will happen in this case? p strong {background-color: yellow;}

A. Strong have yellow background
B. Strong element within a p element have a yellow background
C. Both p and strong have yellow background
D. None of the mentioned
Answer» C. Both p and strong have yellow background
244.

Which of the following selector selects an element if it’s the only child of its parent?

A. :root
B. :nth-oftype(n)
C. :only-child
D. none of the mentioned
Answer» D. none of the mentioned
245.

Which of the following selector selects elements that do not match the selector s?

A. :!(s)
B. :nth-child(s)
C. :not(s)
D. none of the mentioned
Answer» D. none of the mentioned
246.

Which of the following selector selects the element that is the first child of its parent that is of its type?

A. :first-of-type
B. :last-child
C. ::first-line
D. ::first-letter
Answer» B. :last-child
247.

Which of the following selector selects the elements that are currently enabled?

A. :element
B. :empty
C. :enabled
D. none of the mentioned
Answer» D. none of the mentioned
248.

Which of the following selector selects the elements that are the default among a set of similar elements?

A. :default
B. :%
C. :disabled
D. none of the mentioned
Answer» B. :%
249.

Which of the following selector selects the elements that are checked?

A. E ~ F
B. ::after
C. :checked
D. none of the mentioned
Answer» D. none of the mentioned
250.

Which of the following selector selects all elements of E that have the attribute attr that end with the given value?

A. E[attr^=value]
B. E[attr$=value]
C. E[attr*=value]
D. none of the mentioned
Answer» C. E[attr*=value]