HCI201 Midterm          Name _______________________
There are 30 multiple choice questions - mark exactly one choice for each.

1.  Each HTML document:

must have a least one image
contains a TITLE within its BODY
has a head and a body
has a comment tag
2.  We can use the <br /> tag to:
jump to the top of the document
explicitly force a text line break
surpress the production of body rows
reduce the background richness
3.  The <title> tag:
is used to display a title within the body of a document
is used to display a title as a tooltip
is used to place a title in the browser's title bar
can never be omitted from an HTML file
4.  To specify the location of an image we use:
the src attribute of the <img> tag
the <src> tag
the href attribute of the image
the <address> tag
5.  <!-- My pug show --> is:
an example of a comment in HTML
used to replace titles
used to create footers in HTML
used to preload pug images
6.  Text entered after <img src="bluedemon.gif" align=left> will:
print to the left of the image
explicitly force the text to print over the image
be printed at the bottom of the image
print to the right of the image and wrap around it
 
7.  For web pages, internal style rules are found:
in the HEAD section of the html file
in the TITLE section of the html file
in the BODY section of the html file
within <script> tags
8.  The TITLE tag goes inside the BODY section
True    False
9.  What is the correct HTML for inserting an image?
<img>image.gif
<img href="image.gif">
<img src="image.gif">
<image src="image.gif">
10.  What is the correct CSS for inserting logo.gif as a background image?
body {background-image: url(logo.gif)}
<body href="logo.gif">
body {background="logo.gif"}
<background src="logo.gif">
File structure for questions 11, 12, and 13.

11.  From within gallery.htm to refer to the image, cow.jpg, we would use the reference

cow.jpg
Images/cow.jpg
../Images/cow.jpg
../cow.jpg
12.  From within aboutus.htm to refer to the image, logo.gif, we would use the reference
../Images/logo.gif
../../Images/logo.gif
Images/logo.gif
http://IT130/logo.gif
13.  From within home.htm, to link to the aboutus.htm page we would use the reference
./aboutus.htm
../Pages/aboutus.htm
Pages/aboutus.htm
IT130/Pages/aboutus.htm
14.  Suppose, in an html page, we want all paragraphs to use the verdana type font.
The correct internal CSS rule would be
<p "font-face: verdana">
p {font-face: verdana}
p {font-face = "verdana"}
p {font-family: verdana}
15.  How can you make a list that lists the items with bullets?
<list>
<dl>
<ul>
<ol>
16.  In <HR>, the HR stands for:
Horizontal Runes
Hunting Regulations
Happy Romulans
Horizontal Rule
17.  Lists cannot be nested within each other.
True    False
18.  Suppose, in the sentence: "The sooner you fall behind the more
time you have to catch up." We want the words "more time you have"
to be displayed in red. We could use the inline style
<span style="font-weight: red">more time you have</span>
<span style="color: red">more time you have</span>
<font "color: red">more time you have</font>
{span style="color: red"}more time you have</span>
19.  What internal CSS rule do we use to set the color of unvisited links to green?
a: unvisited {color: green}
link {color: green}
a {link-color: green}
a:link {color: green}
20.  What is the correct HTML for making a hyperlink?
<a href="http://www.dogsite.com">Dog Site</a>
<a href="url://www.dogsite.com">Dog Site</a>
<a www.dogsite.com</a>
<a nameref="http://www.dogsite.com">Dog Site</a>
21.  There are three ways to attach a style to a tag:
with an img tag, with a ref tag, with a div tag
pre-tag, post-tag, and align-center
inline, internal, and external
internal, external, and kinetic
22.  h1 {color: blue; font-style: italic} is an example of:
an import rule
an <h1> tag
a style rule
a selector
a hyper-tag
23.  <p class=abs> is an example of:
using a style class
defining an abstract paragraph
defining a style rule
defining a selector of a class
24.  If we define the CSS rule p {font-weight: bold} in an HTML document, then
all text in the document will be bold face
each paragraph will be in bold face
only paragraphs starting with the <font> tag will be in bold face
none of the above
25.  If the CSS rule h4 {text-align: center} is defined, then
all text will be centered
h4 is the selector
h4 is the property
all headings will be centered
26.  What special character can be used to insert white space without a line break.
&sp;
<space>
&nbsp;
<p line="nobreak">
27.  Both <th>Diet</th> and <td>Diet</td> insert the word Diet into a table cell.
True    False
28.  Both <body bgcolor="yellow"> and body {background-color: yellow}
will set the background color of a page to yellow.
True    False
29.  The title attribute
is used to display ones "alter ego"
is used to define "alternative text" for an image
lets you select "alternative medicine"
is used with the <ul> tag to specify alternative list types
30.  Which of these tags are all <table> tags?
<table><tr><td>
<thead><body><tr>
<table><title><tfoot>
<table><tr><tcol>