West Civ XHTML, HTML Course Revision Quiz

Email for more information: courses@westciv.com on XHTML/HTML, CSS and Color and Graphics Trainer Led Courseware, Self-Paced Courses, Training and Consulting.

Visit their website at www.westciv.com the home of StyleMaster and LayoutMaster and other useful software.

Q 1.  Which of the following is a valid HTML start tag?
 




Q 2.  In XHTML, which of the following is a close tag for an empty element?
 




Q 3.  TRUE or FALSE Both empty and non empty elements can contain content?
 




Q4.  Non empty elements can contain:
 




Q 5.  In HTML, which of these constructions is valid?
 




Q 6.  In XHTML, which of these constructions is valid?
 




Q 7.  Which of the following is a list of only structural HTML elements?
 
  
  




Q 8. There are how many levels of heading in HTML?
 




Q 9.  This code snippet displays what HTML syntax problem?

<head>
<title>This is a broken page
</head>
</title>
 




Q 10.  This code snippet displays what HTML syntax problem?

<head>
<title>This is a broken page
</title>
<body>
    ...
</body>
 




Q 11.  This code snippet displays what XHTML syntax problem?

<h1>The origin of fishes
<p>Fishes originated in the sea
<p>They then began swimming
 




Q 12.  This code snippet displays what XHTML syntax problem?

<body>
<p><img src="main.gif"></p>
</body>
 




Q 13.  The following code snippet

<h1>On Taste</h1>
<h3>The 70s</h3>
<h2>The 80s</h2>
 




Q 14.  Which of the following is a valid link to a style sheet in an HTML document?
 

a)   <body> <link rel="stylesheet" type="text/css" href="course_outline.css">

b)   <head> <link rel="stylesheet" href="course_outline.css">

c)   <link rel="stylesheet" type="text/css" href="course_outline.css">
 




Q 15.  TRUE or FALSE

Inline elements can contain other inline elements but not block elements.
 




Q 16.  TRUE or FALSE

Block elements can contain any other kinds of elements.
 




Q 17.  Which of the following is valid HTML?

a) <body><cite> ...
b) <p><blockquote> ... </blockquote></p>
c) <p><cite> ... </cite></p>
 




Q 18.  Which of the following is valid HTML?
 




Q 19.  Which of the following groups of names are sensible, and recommended for use as file and folder names in a web project?
 




Q 20.  Using our Spice Emporium site, which of the following is the correct relative path from the file called masaman_prawn.html to the style sheet called spice_style3.css?
 




Q 21.  Using our Spice Emporium site, which of the following is the correct relative path from the file for the front page to the gif file called banner.gif in the decoration directory in the directory called images?
 




Q 22.  Which of the following is the correct way to embed an image in an XHTML document?
 




Q 23.  For the purposes of usability and accessibility, which of the following is a better embedded image?
 
 




Q 24.  When the anchor of a link contains an image, both older and newer browsers may place a border around the image. Which of the following outlines the best standards based approach to removing the border.
 




Q 25.  TRUE or FALSE The document type declaration for the version of HTML which a document should validate against is not case sensitive.
 




Q 26.  TRUE or FALSE

The document type declaration goes in the head of the HTML document.
 




Q 27.  In XHTML, which of the following is a valid meta element?
 




Q 28.  Which of the following is the correct character entity reference for ">".
 




Q 29.  TRUE or FALSE?

The following code defines a table with three rows, each with two cells.

<table>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>
</table>
 




Q 30.  Is the following table code correct?

<table>
<tr><td></td></tr>
<tr><td></tr>
 




Q 31.  Which of the following code snippets defines the table shown below:


 

A

<table>
<tr>
<td colspan="3">Headline Row
</td>
</tr>
<tr>
<td colspan="2">Here is some text in a cell or two</td>
<td rowspan="3">and here is a bit of text as well</td>
</tr>
<tr>
<td>Some more text</td>
<td>and some more</td>
</tr>
</table>
 

B

<table>
<tr>
<td colspan="2">Headline Row
</td>
</tr>
<tr>
<td colspan="2">Here is some text in a cell or two</td>
<td rowspan="2">and here is a bit of text as well</td>
</tr>
<tr>
<td>Some more text</td>
<td>and some more</td>
</tr>
</table>
 

C

<table>
<tr>
<td colspan="3">Headline Row
</td>
</tr>
<tr>
<td colspan="2">Here is some text in a cell or two</td>
<td rowspan="2">and here is a bit of text as well</td>
</tr>
<tr>
<td>Some more text</td>
<td>and some more</td>
</tr>
</table>
 

D

<table>
<tr>
<td colspan="3">Headline Row
</td>
</tr>
<tr>
<td colspan="2">Here is some text in a cell or two</td>
<td rowspan="2">and here is a bit of text as well</td>
</tr>
<tr>
<td>and some more</td>
</tr>
</table>




Q 32.  In XHTML, which of the following is valid?
 




Q 33.  Which of the following is valid HTML?
 




Q 34.  Which of the following XHTML code snippets define a dropdown menu with three user choices "first choice" "second choice" and "third choice"?

A

<select name="chooser" size="1">
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</select>

B

<popup name="chooser" size="1">
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</popup>

C

<select name="chooser" size="3">
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</select>

D

<select name="chooser" size="1">
<option value="first choice">firstvalue</option>
<option value="second choice">secondvalue</option>
<option value="third choice">thirdvalue</option>
</select>



Q 35.  Which of the following XHTML code snippets define a scrolling list menu with three user choices "first choice" "second choice" and "third choice", all visible at once, and from which multiple choices can be made?

A

<select name="chooser">
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</select>

B

<scrollinglist name="chooser" size="3">
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</scrollinglist>

C

<select name="chooser" size="3" multiple>
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</select>

D

<select name="chooser" multiple>
<option value="firstvalue">first choice</option>
<option value="secondvalue">second choice</option>
<option value="thirdvalue">third choice</option>
</select>