Our team has conducted extensive research to compile a set of XHTML MCQs. We encourage you to test your XHTML knowledge by answering these 100+ multiple-choice questions provided below.
Simply scroll down to begin!
A. <Body>
B. <body>
C. <BODY>
A. <!-- xml version=1.0 encoding=UTF-8 -->
B. <?xml version="1.0" encoding="UTF-8"?>
C. <!-- xml version="1.0" encoding="UTF-8" -->
D. <?xml version=1.0 encoding=UTF-8?>
A. A set of allowable attributes for an element
B. The way we refer to the list of elements provided in a given document
C. Another word for a DTD
D. A predicate that is used to make a set of elements unique and avoid conflict
A. <select name="list" id="list"> <option value="1" selected>One</option> <option value="2">Two</option> <option value="3">three</option> </select>
B. <select name="list" id="list"> <option value="1" selected>One</option> <option value="2" selected>Two</option> <option value="3" selected>three</option> </select>
C. <select name="list" id="list"> <option value="1" >One</option> <option value="2">Two</option> <option value="3" selected="selected">three</option> </select>
A. <form method="post" action="action.php"> <label>Name</label> <input type="text" name="name" id="name" /> </form>
B. <form method="post" action="action.php"> <label for="name">Name</label> <input type="text" /> </form>
C. <form method="post" action="action.php"> <label for="name">Name</label> <input type="text" name="name" id="name" /> </form>
A. <object type="application/x-shockwave-flash" data="silly.swf" width="700" height="500"></object>
B. <object type="application/x-shockwave-flash" data="silly.swf" width="700" height="500" />
C. <object type=application/x-shockwave-flash data=silly.swf width=700 height=500 />
D. <object type=application/x-shockwave-flash data=silly.swf width=700 height=500></object>
A. h1
B. div
C. span
D. fieldset
A. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
B. <!DOCTYPE html>
C. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
D. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
A. target="_new"
B. open="new"
C. open="_window"
D. target="_top"
A. All of these
B. <div><h1>Goodbye!</h1></div>
C. <h1><div>Goodbye!</h1></div>
D. <p><strong>Hello!</p></strong>
A. <header>
B. <table>
C. <th>
D. <td>
A. XML
B. SASS
C. XHAML
D. XSLT
A. <head></head>
B. <footer></footer>
C. <base>
D. <body>
A. <p class=bodyPara>Foo bar!</p>
B. <P class=bodyPara>Foo bar!</P>
C. <P class="bodyPara">Foo bar!</P>
D. <p class="bodyPara">Foo bar!</p>
A. </li>Two<li>
B. <UL>Three</UL>
C. <td ROWSPAN="3">Four</td>
D. <li>One</li>
A. <BR>
B. <br />
C. <break />
A. It only uses Unicode characters.
B. It has all the required elements in the required order.
C. Every tag that opens, closes.
D. All of these.
A. <div id=
B. <div id=
C. <div id:groovy>Ain't it?</div>
D. <div id=groovy>Ain't it?</div>
A. <hl />
B. <HR>
C. <hline />
D. <hr />
A. text
B. coordinates
C. URL
D. _blank
A. <i><h3>Heading</h3></i>
B. <strong><h3>Heading</strong></h3>
C. <h3><i>Heading</h3></i>
D. <h3>Heading</h3>
A. ?comment?
B. <!--comment-->
C. //comment
D. /*comment*/
A. bold
B. sentence case
C. capitalize
D. lowercase
A. <ol> <li>One</li> <li>Two</li> <li>Three</li> </ol>
B. <dl> <li>One</li> <li>Two</li> <li>Three</li> </dl>
C. <nl> <li>One</li> <li>Two</li> <li>Three</li> </nl>
A. <row>
B. <tr>
C. <thead>
D. <th>
A. <a href="email:joe@domain.com">joe@domain.com</a>
B. <a href="joe@domain.com">joe@domain.com</a>
C. <a href="mail:joe@domain.com">joe@domain.com</a>
D. <a href="mailto:joe@domain.com">joe@domain.com</a>
A. <A CLASS="link" HREF="page.html">Link</A>
B. <a class="link" href="page.html">Link</a>
C. <A ID="link" HREF="page.html">Link</A>
D. <a class=link href=page.html>Link</a>
A. In XHTML 1.0 Frameset
B. In XHTML 1.0 Strict
C. In XHTML 1.0 Transitional
D. All of these
A. All of these
B. select
C. textarea
D. input
A. <p></P>
B. <P></P>
C. <P></p>
A. <ul><li><p>Some content</li>
B. <ul><li><p>Some content
C. <ul><li><p>Some content</ul></li>
D. <ul><li><p>Some content</p></li></ul>
A. javascript
B. stylesheet
C. document
D. resources
A. document object model
B. document omission model
C. dubious object mystery
D. document order measurement
A. <!*-- ... --*>
B. <? ... ?>
C. <![CDATA[ .... ]]>
D. <!-- ... -->
A. <p><i>Here is some text
B. <div><b>Here is some text</div></b>
C. <p><b>Here is some text</p></b>
D. <p><i>Here is some text</i></p>
A. <input button value="Hello world!">
B. <input type=button value=Hello world!>
C. <input type="btn" value="Hello world!">
D. <input type="button" value="Hello world!">
A. <tr>
B. <th>
C. <table>
D. <td>
A. XHTML lets you create new elements of your own.
B. XHTML is older.
C. XHTML documents must be well-formed and valid according to the XHTML schema.
D. XHTML documents must be in English.
A. 3
B. 10
C. 4
D. 6
A. Extra hypertext markup language
B. Extendable hypertext model language
C. Extensible hypertext markup language
D. Exit hypertext markup language
A. <input type=text name=name id=id />
B. <input type="text" name="name" id="id" />
C. <input type="text" name="name" id="id">
A. minimized form
B. lower case
C. capital case
D. sentence case
A. To specify alternative image for a broken link
B. To alternate between two images
C. To specify alternative text for an image
D. To specify alternative link for an image
A. <meta name="description" content="My Website">
B. <meta name="description" content="My Website" />
C. <meta name=description content=My Website>
D. <meta name="description" content=My Website>
A. The World Wide Web Consortium (W3C)
B. DARPA
C. The Web HyperText Application Technology Working Group (WHAT-WG)
D. Tim Berners-Lee
A. <span class="class">span</span>
B. <img class=class src=image.jpg />
C. <h2 class=class>span</h2>
D. <class="class">span</>
A. Strict
B. Frameset
C. Transitional
D. Loose
A. document type declaration
B. decent type document
C. definition type development
D. document time definition
A. <html>
B. <head>
C. <body>
D. <meta>
A. <p>
B. <br />
C. <li>