Q 1.If you have used inline, internal, and external all the 3 stylings in HTML for a single element then which style will be applied?
A. Inline
B. Internal
C. External
D. None of the above
Show Answer
Answer:-A.InlineQ 2.Comments in HTML is done by:
A. <?– –>
B. <!– –>
C. <!– –!>
D. </– –>
Show Answer
Answer:-B.Q 3.Which of the following is the correct HTML syntax for adding background color?
A. <p style=”backgroundColor: #a7b8c9”><p>
B. <p style=”background-color= #a7b8c9”></p>
C. <p style=”background-color: #a7b8c9”></p>
D. <p style=”color: #a7b8c9></p>
Show Answer
Answer:-C.Q 4.Which is the correct HTML syntax for adding a link to the image?
A. <a src=”http://www.quizsquestion.com/image”><img src=”image path” /></a>
B. <a src=”http://www.quizsquestion.com/image”><img href=”image path” /></a>
C. <link href=”http://www.quizsquestion.com/image”><img src=”image path” /></link>
D. <a href=”http://www.quizsquestion.com/image”><img src=”image path” /></a>
Q 5.Which of the following are not semantic tags?
A. <div>
B. <nav>
C. <article>
D. <summary>
Show Answer
Answer:-A.Q 6.Which is the correct attribute to change the size of text?
A. <p style=”textSize: 10px”></p>
B. <p style=”text-size: 10px”></p>
C. <p style=”font-size: 10px”></p>
D. <p style=”fontSize: 10px”></p>
Show Answer
Answer:-C.Q 7.What are the correct extensions for saving an HTML file?
A. .html
B. .htm
C. .hml
D. option A and B
Show Answer
Answer:-D. option A and BQ 8.HTML attribute values are case-sensitive?
A. True
B. False
Show Answer
Answer:-A. TrueQ 9.Using which attribute we can add a tooltip in the HTML element.
A. tooltip
B. title
C. ref
D. None of the above
Show Answer
Answer:-B. titleQ 10.Which of the following is not a value of the attribute display?
A. inline-flex
B. flexbox
C. flex
D. grid
Show Answer
Answer:-B. flexboxQ 11.Which of the following is correct about custom attributes in HTML5?
A. The values of these attributes can be retrieved using JavaScript APIs or CSS, similar to standard attribute.
B. A custom data attribute starts with data- and would be named based on the requirement.
C. Both of the above.
D. None of the above
Show Answer
Answer:-C. Both of the above.Q 12.Which of the following attribute triggers an event when all the media data of a media element is loaded?
A. onloadedmetadata
B. onloadstart
C. onmessage
D. Onoffline
Show Answer
Answer:-A. onloadedmetadataQ 13.Which attribute defines the accelerator key to be used for keyboard access to an element.
A. data-x
B. common
C. accesskey
D. Src
Show Answer
Answer:-C. accesskeyQ 14.How to set the playback speed of audio/video?
A. playbackrate
B. defaultPlaybackrate
C. Duration
D. currentTime
Show Answer
Answer:-B. defaultPlaybackrateQ 15.Which one is not a semantic html5 element?
A. <article>
B. <mark>
C. <section>
D. <span>
Show Answer
Answer:-D.Q 16.Which of the following method cancels an ongoing watch Position call?
A. geolocation.watchPosition()
B. geolocation.getcurrentPosition()
C. geolocation.clearPosition()
D. geolocation.clearCurrentPosition(
Show Answer
Answer:-C. geolocation.clearPosition()Q 17.Which of the following attribute triggers events when the document has changed?
A. onhaschange
B. onchange
C. ischanged
D. inputchange
Show Answer
Answer:-A. onhaschangeQ 18.Why iframe is used?
A. To display web page within a web page
B. To display animation within a web page
C. To display web page without browser
D. All of the above
Show Answer
Answer:-C. To display web page without browserQ 19.Which of the following attribute specifies if the user can edit the element’s content or not?
A. content
B. editable
C. contenteditable
D. contextmenu
Show Answer
Answer:-C. contenteditableQ 20.Which of the following attribute triggers events before the document is printed?
A. beforeprint
B. onbeforeprint
C. onprint
D. onafterprint
Show Answer
Answer:-B. onbeforeprintby
Leave a Reply