WorksheetsHTML Test Practice
Total questions: 36
Worksheet time: 40mins
1. What does HTML stand for?
Hierarchy Table-Matrix Language
Hyper Text Markup Language
Hyperlink Text Markup Language
Hardware Technology Machine Language
Who is responsible for creating the web standards?
Microsoft
The World Wide Web Consortium
The United Nations Internet Sub-Committee
Which of the following HTML elements represents the largest heading?
<h1>
<h6>
<head>
<heading>
<body> means...
Defines a document to be HTML5
The root element of an HTML document.
Defines a section
All content visible on the page is in this tag
<html> means
Defines a document to be HTML5
The root element of an HTML document.
Titles the document
All content visible on the page is in this tag
<!DOCTYPE html> means
Defines a document to be HTML5
The root element of an HTML document.
Titles the document
All content visible on the page is in this tag
<br> means
Defines a line break
Defines a paragraph
Titles the document
Defines a section
<div> means
Defines a line break
Defines a paragraph
Titles the document
Defines a section
<p> means
Defines a line break
Defines a paragraph
Titles the document
Defines a section
<title> means
Defines a line break
Defines a paragraph
Titles the document
Defines a section
Given the following output - which HTML element would produce the desired output for #1? (see image)
html
/h1
!DOCTYPE html
body
Given the following output - which HTML element would produce the desired output for #2? (see image)
html
h1
b
i
Given the following output - which HTML element would produce the desired output for #3? (see image)
i
p
b
u
Given the following output - which HTML element would produce the desired output for #4? (see image)
/h1
/b
/i
/u
Given the following output - which HTML element would produce the desired output for #5? (see image)
/h1
/b
/i
/u
Given the following output - which HTML element would produce the desired output for #6? (see image)
Caesar Salad
Caesar salad
caesar Salad
caesar salad
Given the following output - which HTML element would produce the desired output for #7? (see image)
ul
li
/li
/ul
Given the following output - which HTML element would produce the desired output for #8? (see image)
ul
li
/li
/ul
Given the following output - which HTML element would produce the desired output for #9? (see image)
ul
li
/li
/ul
What file extension(s) could be used to save a notepad document?
.txt
.htm
.html
all of the above
In the picture of an HTML document below, identify the file name for the image that will appear on the web page.
img
html5
html5.gif
HTML5 Icon
In the picture of an HTML document below, identify the attribute utilized that satisfies the Americans with Disabilities Act.
alt
src
style
!DOCTYPE
In the picture of an HTML document below, identify the size of the image that will display on the webpage.
5 pixels x 5 pixels
5 MB
128 pixels x 128 pixels
128 MB
A combination of what colors are used to create and represent millions of other colors in webpages (check all that apply)?
Blue
Green
Orange
Red
Yellow
CSS is used to add which of the following to a webpage?
Comments
Tags
Style
Pictures
Which of the following is the correct HTML for creating a hyperlink to another webpage?
< a > http://www.mywebpage.gov < /a >
< a name = "http://www.mywebpage.gov" > mywebpage.gov < /a >
< a url = "http://www.mywebpage.gov" > mywebpage.gov < /a >
< a href = "http://www.mywebpage.gov" > My Web Page < /a >
What is the correct HTML for setting a background color?
< body background = "blue" >
< body bg = "blue" >
< body "background-color-style = blue">
< body style = "background-color:blue;" >
Select all of the following that are table elements.
A. < table >
A. < tr >
A. < tt >
A. < td >
A. < thead >
Comments in HTML begin with <!-- and end with -->.
True
False
6. Consider the following HTML document:
<html>
<body>
<table border = “1”>
<tr>
<td> Baseball Teams </td>
<td> Mascot </td>
</tr>
<tr>
<td> Arizona Diamondbacks </td>
<td> Baxter </td>
</tr>
<tr>
<td> Philadelphia Phillies </td>
<td> Fanatic </td>
</tr>
</table>
</body>
</html>
How many rows and columns will be in the table that displays on the webpage for this document once opened?
2 rows, 2 columns
3 rows, 2 columns
2 rows, 3 columns
3 rows, 3 columns
Bank of America is likely to have a website with an http prefix (rather than https), because of the amount of traffic their website has every day.
True
False
The hexadecimal code #A70000 corresponds to which color?
Red
Green
Blue
Yellow
Color parameter decimal values range from:
0 to 100
0 to 255
0 to 256
0 to 1000
In CSS, how would you style all of the < h3 > tags on a page?
h3 {
}
#h3 {
}
.h3 {
}
< h3 > {
}
Which of the following HTML elements do Ordered Lists and Unordered Lists have in common?
<a>
<tr>
<li>
<dl>
Programs like Paint and Photoshop are used for:
text editing
web site editing
photo editing
music editing
