Welcome to the HTML and XHTML MCQs Page

Dive deep into the fascinating world of HTML and XHTML with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of HTML and XHTML, a crucial aspect of HTML. In this section, you will encounter a diverse range of MCQs that cover various aspects of HTML and XHTML, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within HTML.


Check out the MCQs below to embark on an enriching journey through HTML and XHTML. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of HTML.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of HTML and XHTML. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

HTML and XHTML MCQs | Page 1 of 7

Answer: (d).None of the mentioned
According to the rules of XML and XHTML, all elements must be closed either with an end tag or by self-closing with a space, slash, and a right-pointing angle bracket.
Answer: (a).True
__________ is the XML equivalent to strict HTML 4.01.
Answer: (a).XHTML 1.0 Strict
Answer: (b).Attribute values must be quoted
The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.
Answer: (c).xmlns
Which of the following encoding an XML parser assumes ?
Answer: (d).both a and b
__________ is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.
Answer: (a).XHTML+RDF
XML is a markup language where documents must be marked up correctly.
Answer: (a).True
Which of the following prints bold letters in traditional HTML?

i. <B>Go boldly</B>
ii. <B>Go boldly</b>
iii. <b>Go boldly</B>
iv. <b>Go boldly</b>
Answer: (c).i, ii, iii, and iv
What output dou you expect if the following markup is rendered?
<strong>T   e    s   t   o  f  s  p  a  c  e  s</strong><br>
<strong>T e s t &nbsp;o f&nbsp; s p a c e s </strong><br>
Answer: (c).T e s t o f s p a c e s
T e s t o f s p a c e s
Page 1 of 7

Suggested Topics

Are you eager to expand your knowledge beyond HTML? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!