Name: 
 

Chapter 2 HTML Test



True/False
Indicate whether the statement is true or false.
 

 1. 

Internet Explorer is a website.
 

 2. 

The most widely used Internet service is the World Wide Web.
 

 3. 

Multimedia can be embedded in an HTML document.
 

 4. 

A tag with a slash (/) before the element indicates the start of an instruction.
 

 5. 

HTML is case sensitive.
 

 6. 

Spaces and blank lines in an HTML document affect how it is interpreted.
 

 7. 

The document title is displayed in the status bar of the browser’s window.
 

 8. 

The head section of an HTML document contains the document’s content.
 

 9. 

A word processor can be used to create an HTML.
 

 10. 

A word processor can be used to create an HTML document.
 

 11. 

HTML documents that are posted to the Internet are protected by copyright.
 

 12. 

Text between paragraph tags is automatically wrapped by the browser.
 

 13. 

The break tag must be paired.
 

 14. 

Heading tags are used to emphasize text.
 

 15. 

Two heading levels can be displayed on a single line.
 

 16. 

The horizontal rule tag must be paired.
 

 17. 

An attribute is used to modify an element.
 

 18. 

Attributes are always placed in the ending tag.
 

 19. 

A bulleted list is used when each item is equally important.
 

 20. 

In a numbered list, each item in the list has to be defined by a <nl> tag.
 

 21. 

In a browser window, hyperlinks can be clicked to display a different HTML document.
 

 22. 

To display an image in an HTML document, the file name must be specified in an <img> tag.
 

 23. 

Comments in a document appear in a browser window.
 

 24. 

Declarations are used to define the formats applied in a style sheet.
 

 25. 

A linked styled sheet is defined with a <style> tag.
 

 26. 

Color constants have corresponding hexadecimal values.
 

 27. 

HTML content is center aligned by default.
 

 28. 

JavaScript is the same language as Java.
 

 29. 

Scripts can be placed anywhere in an HTML document.
 

 30. 

JavaScript is interpreted by a browser’s built-in JavaScript engine.
 

 31. 

Java applets run in a browser window.
 

 32. 

Java applets have the ability to write files to a user’s computer.
 

 33. 

Applets can be customized by specifying values in a <custom> tag.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 34. 

Most web pages are created using a markup language called
a.
HTTP.
c.
FTP.
b.
URL.
d.
HTML.
 

 35. 

Which application is used to view HTML documents that have been published to a web server?
a.
Notepad
c.
a web browser
b.
a text editor
d.
a word processor
 

 36. 

Which is not a document tag?
a.
<br>
c.
<title>
b.
<html>
d.
<body>
 

 37. 

Which tag tells the browser that the document file contains HyperText Markup Language?
a.
<file>
c.
<title>
b.
<html>
d.
<body>
 

 38. 

Which type of files are HTML documents?
a.
rich text format files
c.
plain text files
b.
image files
d.
tag files
 

 39. 

Which extension must be included with an HTML document file name?
a.
.txt
c.
.exe
b.
.htm
d.
.doc
 

 40. 

Which is a valid file name for an HTML document?
a.
my_hobbies.txt
c.
My Hobbies.htm
b.
my_hobbies.htm
d.
MY*HOBBIES.txt
 

 41. 

When opening an HTML document in Notepad, the Files of type must be changed to
a.
Document Files.
c.
Internet Files.
b.
Text Files.
d.
All Files.
 

 42. 

Which application is used to view HTML documents that have been published to a web server?
a.
Notepad
c.
a web browser
b.
a text editor
d.
a word processor
 

 43. 

Which tag is used to move a line of text within a paragraph to the next line?
a.
<p>
c.
<hr>
b.
<br>
d.
<html>
 

 44. 

Which heading tag has the largest font size?
a.
<h1>
c.
<h6>
b.
<h2>
d.
<h8>
 

 45. 

Which tag creates a table header?
a.
<table>
c.
<tr>
b.
<th>
d.
<td>
 

 46. 

Which tag is used to create a hyperlink?
a.
<a>
c.
<hyperlink>
b.
<hr>
d.
<p>
 

 47. 

In a style sheet, what modifies an HTML element and is comprised of a selector and declarations?
a.
a class
c.
a rule
b.
a font family
d.
a format
 

 48. 

Which extension is used when a style sheet is saved as a separate file?
a.
.ssf
c.
.htm
b.
.txt
d.
.css
 

 49. 

In a JavaScript, a // is used to
a.
specify which scripting language is used to define the scripts.
b.
display an alert dialog box.
c.
add a single line comment to a script.
d.
end a JavaScript statement.
 

 50. 

In a JavaScript, a semicolon(;) is used to
a.
specify which scripting language is used to define the scripts.
b.
display an alert dialog box.
c.
add a single line comment to a script.
d.
end a JavaScript statement.
 

 51. 

Where in a browser window will “Hello World” be displayed if the statement window.defaultStatus="Hello World"; is interpreted?
a.
status bar
c.
web browser window
b.
title bar
d.
it will not be displayed
 

 52. 

Which is not an attribute required by the <applet> tag?
a.
name of the applet
c.
width
b.
background color
d.
height
 

Completion
Complete each statement.
 

 53. 

HTML documents are plain ____________________ files.
 

 

 54. 

The ____________________ tag defines the section that contains information about the HTML document, including its title.
 

 

 55. 

An HTML document is saved with a ____________________ extension.
 

 

 56. 

The Windows ____________________ can be used to quickly switch between Notepad and Internet Explorer.
 

 

 57. 

Style sheets can be embedded or ____________________.
 

 



 
Check Your Work     Start Over