This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “HTML5 Introduction – 2”.
1. Which of the following defines the title of a work?
Explanation: The <cite> tag defines the title of a work. The <hr> tag is used to give a horizontal break. When we want to link one page to another, then <a> tag is used. The <address> tag is used to define the contact information about owner of document.
2. Which element is design to wrap a single piece of information?
Explanation: <time> tag wrap single piece of information i.e. it defines date, month and year. The <nav> element identifies a set of navigation links, <footer> is introduced in HTML5 which is present at the end of page and do conatins footer information i.e copyright information.
3. What an article element should not contain?
a) Main element
b) Text or embedded content
d) Video & Audio
Explanation: The <main> element must NOT be a descendant of an <article>, <aside>, <footer>, <header>, or <nav> element. The article element may contain audio/video clips, images and also text or embedded content.
4. Which of the following statement is true?
a) Canvas Contains built-in animations
b) SVG needs scripts to draw elements
c) In canvas, drawing is done with pixels
d) SVG don’t support to event handlers
Explanation: In SVG drawing is done with vectors and it support event handlers. Canvas doesn’t contains any built-in-animations and drawing is done with pixels.
5. What does <main> include?
Explanation: <header> element contains navigation links. Slidebar is for hoverable/sliding text. <footer> is introduced in HTML5 which is present at the end of page and do contains footer information i.e copyright information. Main content is the entire article which wraps the <article> element. It holds the page’s main content. It can be useful for screen readers. E.g. <main> <article>…………</article> </main>
6. Which of the following is not sectioning elements?
Explanation: The <section> element represents a section of a document or application. Tags like <article>, <aside>, <nav>, <section> are the ones that create a nested, new outline inside the page.
7. How many times can HTML5 events be fired?
c) Only two
Explanation: We can call events like drag, ondragover, etc multiple times in HTML5.
8. Which element is used to get highlighted text in HTML5?
Explanation: The <mark> element is used to highlight a section of text. It is useful for quoting a text or if one wants to bring attention to the text. The <b> tag is used to make text/paragraph bold. <u> tag is used to underline the text you wanted.
<p>This is the example.<mark> I like this dog. </mark></p>
Output: This is the example. I like this dog.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.