HTML 5 MCQS

All Questions for: HTML 5 MCQS

Question 51: Which of the following overrides container's align-items property?

  • A align-self
  • B align-items
  • C order
  • D flex

Explanation: No explanation is given for this question

Question 52: Which boolean attribute if specified, will allow video automatically seek back to the start after reaching at the end.

  • A autobuffer
  • B autoplay
  • C loop
  • D controls

Explanation: No explanation is given for this question

Question 53: Which of the following element is used as a container for content?

  • A <aside>
  • B <address>
  • C <article>
  • D <footer>

Explanation: No explanation is given for this question

Question 54: In HTML Audio/Video DOM, __________ sets or returns the volume of the audio/video.

  • A video Tracks
  • B src
  • C volume controls
  • D volume

Explanation: The volume property sets or returns the current volume of the audio/video.

Question 55: 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 False
  • B True

Explanation: To show a video in HTML, use the video element.

Question 56: Which element represents marked or highlighted text for reference purposes?

  • A mark
  • B highlight
  • C blink
  • D strong

Explanation: The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context.

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

  • A preload
  • B loop
  • C poster
  • D src

Explanation: No explanation is given for this question

Question 58: 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 details
  • B meter
  • C progress
  • D menu

Explanation: The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the tag.

Question 59: __________ allows the iframe to pull in content from elsewhere in the same domain.

  • A allow-forms
  • B none of the mentioned
  • C allow-same-origin
  • D allow-scripts

Explanation: It allows the iframe content to be treated as being from the same origin.

Question 60: Which element serves as a container for atomic filter operations.

  • A filter
  • B feblend
  • C tref
  • D feimage

Explanation: A filter is referenced by using the filter attribute on the target SVG element and is never renderd directly.

Question 61: Which one of the following contains information about the author?

  • A <footer>
  • B <header>
  • C <head>
  • D <body>

Explanation: No explanation is given for this question

Question 62: _______ drawings can be dynamic and interactive.

  • A JavaScript
  • B SVG
  • C CSS3
  • D Canvas based

Explanation: Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium (W3C) since 1999. SVG images and their behaviors are defined in XML text files.

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

  • A Canvas
  • B SVG
  • C None of the above
  • D Web Worker

Explanation: No explanation is given for this question

Question 64: In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should start playing as soon as it is loaded.

  • A autoplay
  • B controls
  • C currentSrc
  • D audio Tracks

Explanation: The autoplay attribute is a boolean attribute. When present, the audio will automatically start playing as soon as it can do so without stopping.

Question 65: Which of the following HTML 4 attributes is removed in HTML5?

  • A text
  • B rules
  • C all of the mentioned
  • D link

Explanation: All the mentioned attributes are deprecated in HTML5.

Question 66: Which of the following works as a sidebar?

  • A <section>
  • B <footer>
  • C <aside>
  • D <details>

Explanation: No explanation is given for this question

Question 67: Which of the following can't be the value of float property?

  • A right
  • B inherit
  • C left
  • D center

Explanation: No explanation is given for this question

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

  • A onbeforeprint
  • B onprint
  • C onafterprint
  • D offlineprint

Explanation: onafterprint ? Triggers event after the document is printed.

Question 69: Which protocol is supported by Android browsers?

  • A FTP
  • B RTMP
  • C HLS
  • D HTTPS

Explanation: Android browsers support a new streaming protocol namedHTTP Live Streaming (HLS) implemented by Apple Inc.

Question 70: HTML5 documents may contains a ___________ element, which is used to set the header section of a document.

  • A section
  • B none of the mentioned
  • C header
  • D footer

Explanation: The header tag is used to contain the header content of a site.

Question 71: Which of the following element sets is an item of microdata?

  • A none of the mentioned
  • B itemref
  • C itemtype
  • D itemscope

Explanation: The itemscope attribute is a boolean attribute. An element with the itemscope attribute specified creates a new item, a group of name-value pairs.

Question 72: In HTML Audio/Video DOM, __________ sets or returns the default speed of the audio/video playback.

  • A defaultPlaybackRate
  • B currentTime
  • C playbackRate
  • D duration

Explanation: Setting this property will only change the default playback speed, not the current.

Question 73: 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

Explanation: The drawImage() method draws an image, canvas, or video onto the canvas.

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

  • A networkState
  • B controller
  • C buffered
  • D preload

Explanation: A buffered range is a time-range of buffered audio/video. The user gets several buffered ranges if he/she skips in the audio/video.

Question 75: __________ can be used to advise the browser to download media content in the background to improve playback.

  • A data-X
  • B buffer
  • C poster
  • D autobuffer

Explanation: It suggests to the browser that it should load as much of the resource as possible. As long as the browser

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

  • A startDate
  • B textTracks
  • C videoTracks
  • D readyState

Explanation: The textTracks property returns a TextTrackList object. The TextTrackList object represents the available text tracks for the audio/video. Each available text track is represented by an TextTrack Object.

Question 77: Which element may be used within content to represent material that is tangential?

  • A class
  • B cite
  • C aside
  • D article

Explanation: The aside tag defines a block of content that is related to the main content around it, but not central to the flow of it.

Question 78: The ___________ element must reference a

  • A script
  • B clip-Path
  • C animateTransform
  • D radialGradient

Explanation: radialGradient lets authors define radial gradients to fill or stroke graphical elements.

Question 79: Which element must reference a resource that can provide an image for the cursor graphic?

  • A hover
  • B fill
  • C i
  • D cursor

Explanation: The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element. This attribute behaves exactly like the css cursor property except that if the browser supports the cursor element, you should be able to use it with the funciri notation.

Question 80: Which plugins can provide the fallback support for old browsers?

  • A Flash
  • B Quicktime
  • C both and b
  • D none of the mentioned

Explanation: An attribute of the format: type=

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

  • A Canvas
  • B None of the above
  • C Flash
  • D Svg

Explanation: No explanation is given for this question

Question 82: The __________ element represents a span of text that is isolated from its surroundings for the purposes of bidirectional text formatting

  • A b
  • B base
  • C bdo
  • D bdi

Explanation: bdi stands for Bi-directional Isolation. This element is useful when embedding user-generated content with an unknown directionality.

Question 83: Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?

  • A moveTo(x, y)
  • B beginPath()
  • C none of the mentioned
  • D closePath()

Explanation: The beginPath() method begins a path, or resets the current path.

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

  • A tref
  • B use
  • C bin
  • D stroke

Explanation: The use element takes nodes from within the SVG document, and duplicates them somewhere else.

Question 85: Which of the following element marks the ruby text component of a ruby annotation?

  • A r
  • B rt
  • C rubytxt
  • D ruby

Explanation: The rt element is the markup for ruby text.

Question 86: 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 meter
  • C header
  • D mark

Explanation: The header element represents a container for introductory content or a set of navigational links.

Question 87: ___________ defines a group of content that should be used as a figure and may be labeled by a legend element.

  • A figure
  • B output
  • C aside
  • D details

Explanation: The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.

Question 88: The __________ element must reference either an

  • A src
  • B animate
  • C href
  • D altGlyph

Explanation: The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.

Question 89: The __________ attribute effectively renders the iframe as an inline include, which allows the parent document

  • A allow-forms
  • B none of the mentioned
  • C seamless
  • D embed

Explanation: The seamless attribute is a boolean attribute. When present, it specifies that the iframe should look like it is a part of the containing document (no borders or scrollbars).

Question 90: The World Wide Web

  • A True
  • B False

Explanation: The World Wide Web

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

  • A embed
  • B object
  • C figure
  • D none of the mentioned

Explanation: HTML documents are delivered as

Question 92: Which type attribute of input element sets the element

  • A file
  • B email
  • C date
  • D range

Explanation: The input element with a type attribute whose value is

Question 93: Which of the following can't be the value of a clear property?

  • A center
  • B left
  • C inherit
  • D right

Explanation: No explanation is given for this question

Question 94: The __________ element may contain not just links but also other interactive items, including the newly introduced command element.

  • A details
  • B menu
  • C meter
  • D progress

Explanation: The menu tag defines a list/menu of commands. The menu tag is used for context menus, toolbars and for listing form controls and commands.

Question 95: 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 fillRect(x, y, w, h)
  • B none of the mentioned
  • C clearRect(x, y, w, h)
  • D strokeRect(x, y, w, h)

Explanation: The clearRect() method clears the specified pixels within a given rectangle.

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

  • A month
  • B week
  • C time
  • D day

Explanation: day is not defined in the pre-defined attribute list of input tag

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

  • A None of the above
  • B onerror
  • C onopen
  • D onmessage

Explanation: No explanation is given for this question

Question 98: 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 none of the mentioned
  • C mark
  • D strong

Explanation: The mark tag defines marked text and is used to highlight parts of your text.

Question 99: In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should be loaded when the page loads.

  • A preload
  • B controller
  • C buffered
  • D autoplay

Explanation: The preload property allows the author to provide a hint to the browser about what he/she thinks will lead to the best user experience. This attribute may be ignored in some instances.

Question 100: Which of the following is not set with font-style property?

  • A font-style: italic
  • B font-style: capitalize
  • C font-style: oblique
  • D font-style: normal

Explanation: No explanation is given for this question