HTML Questions & Answers – HTML5 Document Structure Changes

This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “HTML5 Document Structure Changes”.

1. Which element is used to define a discrete unit of content such as a blogpost, comment, and so on?
a) section
b) class
c) article
d) media
View Answer

Answer: c
Explanation: Sections in document is made by the section tag. The class attribute specifies one or more class names to HTML. An article element is semantic element and it contains a standalone piece of content that would make sense if syndicated as an RSS item, for example a news item.

2. HTML5 documents may contains a ___________ element, which is used to set the header section of a document.
a) header
b) footer
c) section
d) drive
View Answer

Answer: a
Explanation: Section element is used to make sections in document. The copyright/footer information is provided by footer element in HTML5. A header for document section is given by header element. The header tag is used to contain the header content of a site.

3. Which element may be used within content to represent material that is tangential?
a) aside
b) cite
c) article
d) class
View Answer

Answer: a
Explanation: <cite> tag defines the title of work. The class attribute specifies one or more class names to HTML. An article tag is similar to <section> or <header> which contains information. 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.
advertisement
advertisement

4. ____________ contains the navigation menu, or other navigation functionality for the page.
a) section
b) header
c) nav
d) aside
View Answer

Answer: c
Explanation: The nav element is for marking up the navigation links or other constructs (eg a search form) that will take you to different pages of the current site, or different areas of the current page. Header contains section of headings. Section element is used to make sections in document. 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.

5. Which of the following attribute is used to display date/time content?
a) time
b) datetime
c) date
d) year
View Answer

Answer: b
Explanation: To provide both human and machine-friendly date/time content, the element supports a datetime attribute, which should be set to the previously mentioned date format of YYYY-MM-DDThh:mm:ssTZD. Time tag defines date and time (human readable) while datetime tag display machine readable date/time.

6. The element ___________ simply groups items within an enclosed dd tag, though it may associate them with a caption defined by a dt tag.
a) object
b) figure
c) embed
d) collect
View Answer

Answer: a
Explanation: HTML documents are delivered as “documents”.These are then parsed, which turns them into the Document Object Model (DOM) internal representation, within the web browser. A self-contained information like images, diagrams are specified by figure tag in HTML. External applications are embed using embed tag.

7. 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) strong
c) mark
d) bold
View Answer

Answer: c
Explanation: <em> tag convert the font in italic one. The <strong> tag is used to denote the importance of text. <bold> tag is used to make the text bold in font size. The mark tag defines marked text and is used to highlight parts of your text.
advertisement

8. 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) True
b) False
View Answer

Answer: a
Explanation: To show a video in HTML, video element is used. One of the attribute of video called src is used to provide the location of video i.e. it’s URL address.

9. Which tag is used to encapsulate navigation and then style the elements appropriately as menu items?
a) ul
b) li
c) nav
d) both ul and li
View Answer

Answer: d
Explanation: Conventionally, many web developers have use <ul></ul> and <li></li> tags to encapsulate navigation and then styled the elements appropriately as menu items. This seems to introduce quite a bit of ambiguity in markup because it may be difficult to determine the difference between a list that has links in it and a list that is simply navigation.
advertisement

Sanfoundry Global Education & Learning Series – HTML.

To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.