1.
We can use to insert an extra space
between words in an HTML file:
a) True b) False
2.
CSS is a newer version of HTML.
a) True b) False
3. Internet Explorer, Firefox, Safari, and Crome are all examples of:
a) CSS attributes
b) HTML tags
c) Internet browsers
d) Windows editors
a) be in your IT130 folder
b) be in your public_html folder
c) have the file extension .html
d) all be in the same folder
5. <p style="text-align: right"> is an example of
a) using a character entity
b) using an internal style rule
c) declaring the data type of a paragraph
d) using an inline style rule
6. According to XHTML, the proper way to cause the browser to display a horizontal rule is
a) <hr ʙ>
b) <hr>
c) <hspace="hr">
d) <hr />
7. The title attribute:
a) must appear within the <img> tag
b) is an attribute of the <bishop> tag
c) can be used to cause text to be displayed when a user mouses over an image
d) creates an alternative image to be displayed when the user clicks on the original image
a) the body container
b) the index container
c) the head container
d) the style container
9.
What is the correct HTML for inserting an image?
a) <img src="image.gif" />
b) <img>src="image.gif"</img>
c) <img href="image.gif" />
d) <img alt="image.gif" />
10.
Every element has an opening and closing tag. For example,
<p>...</p>.
Identify two HTML elements that combine the opening and closing tag into one
single tag.
a) <a> and <link>
b) <quot> and <img>
c) <link> and <hr>
d) <br> and <li>
11. CSS style rules for web documents can be defined:
a) within style tags between <rule> and </rule> in the HTML document
b) between <title> and </title> in the html document
c) in an external .css file
d) all of the above
12. Writing <img style="float: right" src="otis.jpg" /> in an html document causes text to:
a) print to the left of the image and wrap around it
b) print to the right of the image and wrap around it
b) print over the image
d) print at the bottom of the image
a) True b) False
14. Relative to the current folder, where is ../Form a reference to?
a) The Form subfolder of the current folder
b) The Form subfolder of public_html
c) The Form subfolder of the parent folder
d) Can not be determined
![]() |
||||
![]() |
||||
![]() |
![]() |
|||
![]() |
![]() |
15.
Scuttle is editing his hw3.htm file and wants to display his me.jpg image.
Which is correct:
a) <img src="me.jpg" />
b) <img src="images/me.jpg" />
c) <img src="../me.jpg" />
d) <img href="me.jpg" />
16.
Scuttle is editing his hw3.htm file and wants to display the page
onehour.htm. Which is correct:
a) <a href="movies/onehour.htm">
b) <a href="http://movies/onehour.htm">
c) <a href="../../onehour.htm">
d) <a href="../movies/onehour.htm">
17.
Scuttle wants to use the twit.jpg image as background to his hw3.htm page. In
his hw3.htm file he should:
a) put <img src="../movies/images/twit.jpg" /> between <style> and </style>
b) define the style rule: body {background-image: <img src="images/twit.jpg" />}
c) define the style rule: body {background-image: url(../movies/images/twit.jpg)}
d) put <img src="@@/images/twit.jpg" /> just below the <body> tag
18.
It is not possible for Scuttle to create any more folders named images,
in his students account.
a) True b) False
a) the file phone.htm must be in the parent folder of pictures
b) the file msh.gif is in a folder one level up from the folder containing phone.htm
c) the file phone.htm must be in the pictures folder
d) the file phone.htm must not be in the pictures folder
20.
What is the correct HTML for making a hyperlink?
a) <a href="http://www.dogsite.com">Dog Site</a>
b) <a www.dogsite.com</a>
c) <a nameref="http://www.dogsite.com">Dog Site</a>
d) <a href="url:\\www.dogsite.com">Dog Site</a>
21.
Using CSS, we can make a list with square bullets by first defining the class
sqr, like this:
a) <ul class="sqr">
b) ul.list-style-type
c) <ul style="sqr">
d) <ul.sqr>
22. To specify the start of a new list item, we use which tag:
a) <list-item>
b) <ul>
c) <ol>
d) <li>
a) (1), (2), and (3) b) (3) only c) (2) and (3) d) all of them are allowed
24.
SSH is software designed to be used for viewing and editing HTML files:
a) True b) False
25.
If we write <p style="text-align: way-way-high-up; color: green">Think Green</p>
in an HTML document, then the words
Think Green will be displayed at the top
of the screen.
a) True b) False
26. How would the CSS style rule h2 { font-family:Arial } be written if we wrote it inline.
a) h2 = "font-family:Arial"
b) <h2 style="font-family:Arial">
c) <h2 font-family=Arial>
d) <h2> css="font-family:Arial"
27.
To format an HTML page using CSS styles in an external file called
stylesheet.css, we include this tag:
<link rel=stylesheet type="text/css" href="stylesheet.css" />.
Where is the tag included:
a) in the body section of the HTML file
b) in the style section of the HTML file
c) in the head section of the HTML file
d) in the script section of the HTML file
a) 2 x 2
b) 1 x 3
c) 2 x 1
d) 3 x 1
29.
The <tr> tag
a) defines a standard cell in a table
b) defines a new row in a table
c) is used in conjuction with <hr> to specify a type definition
d) none of the above
30.
The text "CDM" can be colored red using:
a) <color="red">CDM</color>
b) <span style="color: red">CDM</span>
c) <span style="bgcolor: red">CDM</span>
d) <color style="text-color: red">CDM</color>