This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “HTML5 Layout Elements”.
1. Which one of the following contains information about the author?
Explanation: Footer for its nearest sectioning content or sectioning root element is represented by <footer> element. It typically contains information about author of the section, links to related documents or copyright data.
2. Header element does not contain ___________
c) heading elements
d) authorship information
Explanation: <header> element contains one or more than one heading elements, authorship information, logo or icon. <header> tag can’t be placed inside <address> or <footer> or inside another <header> element.
3. Which element contains major navigational block?
Explanation: The major navigational blocks on site like primary site navigation is contained by <nav> element.
E.g. <nav> <ul> <li><a href="https://www.sanfoundry.com/" class= “dream”>HTML</a> </li> <li><a href="https://www.sanfoundry.com/">CSS</a> </li> <li><a href="https://www.sanfoundry.com/">PHP</a> </li> </ul> </nav>
4. Which element represents self-contained composition in document?
Explanation: A self-contained composition in document, application, page or site that is intended to be independently distributable is represented by <article> element. Some of the examples are a magazine or newspaper article or a forum post, or a blog entry.
5. Which of the following element is used as a container for content?
Explanation: <aside> element can be used inside <article> or outside it also. When it is used inside <aticle> it contains information that is related to article. When <aside> is used outside <article>, it acts as container for content that is related to the whole page.
6. Which element groups related content together?
Explanation: Grouping of related content together is done by <section> element. Each section will have its own heading. This element should not be used as wrapper for entire page. If we wish of containing a element for entire page, this will be best done by <div> element.
7. For grouping together one or more <h1> to <h6> element what element is used?
Explanation: For grouping together set of one or more <h1> to <h6> element we use <hgroup> element. We can group together the primary heading and the subheading. E.g. <hgroup> <h2> Winter is coming!</h2> <h3>Its too cold</h3> </hgroup>.
8. Which element is used for grouping together related elements?
Explanation: For grouping together related elements we use <div> element. Anything that lies outside of <footer>, <aside> or <content> elements can be considered as main content. E.g. <div class= “wrap”> <header> <h1> kitchen </h1> </div>.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.