R4RIN
MCQS
HTML MCQ Quiz Hub
HTML Mcq Question Set 9
Choose a topic to test your knowledge and improve your HTML skills
1. In HTML Audio/Video DOM ____ returns a TextTrackList object representing the available text tracks.
readyState
startDate
videoTracks
textTracks
2. Which of the following statement is not true?
SVG stands for Scalable Vector Graphics
SVG is used to define graphics for the Web
SVG is a W3C recommendation
SVG doesn’t support event handlers
3. To draw on the canvas, authors must first obtain a reference to a context using the _____ method of the canvas interface element.
getImageData
toDataURL
getContext
restore
4. The ___ method must add the scaling transformation described by the arguments to the transformation matrix.
scale(x, y)
translate(x, y)
rotate(angle)
skew(x,y)
5. 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?
strokeRect(x, y, w, h)
clearRect(x, y, w, h)
fillRect(x, y, w, h)
removeRect(x,y,w,h)
6. 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.
measureText()
imageData()
drawImage()
setImage()
7. 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.
fill()
stroke()
clip()
get()
8. The ____ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.
fill()
stroke()
clip()
get()
9. Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?
closePath()
beginPath()
moveTo(x, y)
endPath()
10. Which of the following is not a type of attribute for input tag?
day
week
month
time
11. 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.
progress
meter
details
menu
12. The ____ element may contain not just links but also other interactive items, including the newly introduced command element.
progress
meter
details
menu
13. The ____ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe.
allow-forms
seamless
embed
allow-scripts
14. Which of the following allows the sandboxed iframe to run scripts from the same domain?
allow-same-origin
allow-forms
allow-scripts
allow-pointer-lock
15. ____ allows the iframe to pull in content from elsewhere in the same domain.
allow-same-origin
allow-forms
allow-scripts
allow-pointer-lock
16. What does ‘On-Screen Action’ means in the testing of HTML5 applications?
Using Drag action
Using new input type
Using play and pause action of audio and video elements
Verifying SVG and Canvas elements
17. What can be used to verify a displayed graphics?
Property checkpoints
Region checkpoints
On-Screen Action
Local STorage
18. Which element has been removed from HTML5 (W3C) specification?
<figure>
<nav>
<hgroup>
<aside>
19. Which of the following is used for plug-in content?
<embed>
<progress>
<meter>
<source>
20. Which of the following does not lie under the attribute of <input> and is not supported by Opera?
url
time
tel
option
21. Which is the new attribute of <input> element that is used to change the appearance of checkbox?
Indeterminate
Media
EI
Target
22. Which attribute does not lie inside <a> and <area> elements?
Media
Ping
Hreflang
Preload
23. Which element does not support autofocus attribute?
&lt;input&gt;
&lt;select&gt;
&lt;textarea&gt;
&lt;base&gt;
24. Which element does not support form attribute?
&lt;input&gt;
&lt;output&gt;
&lt;meta&gt;
&lt;button&gt;
25. Which attribute of <input> element can be used both with <datalist> and <select> elements?
List
Pattern
Multiple
Max
26. Which is not a Boolean attribute?
Multiple
Novalidate
Formvalidate
Formtarget
27. Which of the following is not the keyword of form method attribute?
GET
POST
PUT
OUT
28. What is the work of async attribute?
It influences script loading
It gives a label to the menu
It validates form data
Enables a set of extra restrictions on any content
29. Which is not <iframe> attribute?
Seamless
Srcdoc
Sizes
Sandbox
30. Which is not a new global attribute in HTML5?
Contenteditable
Contextmenu
Title
Draggable
31. How do we write comments in HTML5?
&lt;!……&gt;
&lt;…….!&gt;
&lt;/…….&gt;
&lt;/……/&gt;
32. Which one is correct syntax?
&lt;p id=”1td”&gt;
&lt;p id=”td”&gt;
&lt;p id=”%td”&gt;
&lt;p id=”#td”&gt;
33. Which of the following is not example of block element?
&lt;h1&gt;
&lt;ul&gt;
&lt;p&gt;
&lt;a&gt;
34. What does semantic markup not define?
provides extra information
where an emphasis is placed in a sentence
meaning of an acronym
that describes paragraphs
35. How many levels of headings HTML has?
6
3
7
2
36. What is the size of content of an <h1> element?
Smallest
Largest
Medium
Anything between smallest and largest
37. What is the tag used for making character appearance bold?
&lt;b&gt;content&lt;/b&gt;
&lt;i&gt;content&lt;/i&gt;
&lt;u&gt;content&lt;/u&gt;
&lt;br&gt;content&lt;/br&gt;
38. For writing chemical formula of water which tag will be used?
&lt;sup&gt;
&lt;sub&gt;
&lt;br/&gt;
&lt;ul&gt;
39. which tag will be used For raising number to a power?
&lt;sup&gt;
&lt;sub&gt;
&lt;br/&gt;
&lt;ul&gt;
40. What is the use of <hr/> tag?
To create horizontal rule between sections
To create a line break
To create vertical rule between sections
For making content appearance italics
41. Which of the following is not an empty element.
&lt;hr/&gt;
&lt;br/&gt;
&lt;sup&gt;
&lt;img/&gt;
42. Which attribute is not essential under <iframe>?
src
height
width
frameborder
43. Which is not the attribute of <meta> element?
description
keywords
robots
seamless
44. Copyright symbol can be included by _____
&amp;lt
&amp;copy
&amp;amp
&amp;gt
45. Attributes that allow to identify particular element are _______
&lt;div&gt; and &lt;span&gt;
&lt;meta&gt;
id and class
&lt;iframes&gt;
46. All elements are identified by their ____ and are marked up using either start tags and end tags or self-closing tags.
attribute name
tag name
class name
none of the mentioned
47. The ____ element represents a span of text that is isolated from its surroundings for the purposes of bidirectional text formatting.
b
bdi
bdo
base
48. The interactive element audio with the attribute controls must not appear as a descendant of which element?
a
button
audio
both a and button
49. A ____ element must have a start tag but must not have an end tag.
details
command
code
both details and command
50. Which type attribute of input element sets the element’s value to a string representing a number?
range
email
file
date
Submit