WorksheetsHTML review fall
Total questions: 18
Worksheet time: 9mins
Which of the following is a valid HTML tag?
h1
<>
<h1>
>h1<
What does HTML stand for?
Hidden Text Meta Language
Hyper Text Markup Language
Hidden Theme Markdown Level
Hyper Text Markdown Language
Which of the following is an example of metadata about a webpage?
The title of the webpage
The body of the webpage
An <h1> tag on the webpage
All of the above
What is the function of the <br> tag?
Create a line break on the resulting webpage
Create a horizontal line on the resulting webpage
Italicize text
Bold text
Which of the following is the correct HTML code to create a hyperlink that displays and links to google.com?
<a href="https://google.com">
Click Me
</a>
<a href="Click Me">
https://google.com
</a>
Click Me <a>https://google.com</a>
<a>
Click Me
</a href="https://google.com">
Which of the following lines of HTML code will insert an image into a webpage?
<img>
https://codehs.com/static/img/logo.png
</img>
<img>
src="https://codehs.com/static/img/logo.png"
</img>
<img src="https://codehs.com/static/img/logo.png">
<img https://codehs.com/static/img/logo.png>
Which of the following HTML code snippets would produce the following web page:
Apples Bananas Oranges
<ul>
Apples
Bananas
Oranges
</ul>
<ol>
Apples
Bananas
Oranges
</ol>
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
<ol>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ol>
Which of the following tags defines a table row?
<table>
<tr>
<th>
<td>
Which of the following tags defines a table header?
<table>
<tr>
<th>
<td>
Which of the following HTML code snippets will generate the table?
<table border="1">
<tr>
<th>Name</th>
<th>Score</th>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table border="1">
<tr>
<td>Name</td>
<td>Score</td>
</tr>
<tr>
<td>Karel</td>
<td>32</td>
</tr>
</table>
<table border="1">
<tr>
Name
Score
</tr>
<tr>
Karel
32
</tr>
</table>
<table border="1">
<th>Name</th>
<th>Score</th>
<td>Karel</td>
<td>32</td>
</tr>
</table>
Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?
<blue>
<h1>Hello</h1>
</blue>
<h1 background-color="blue">Hello</h1>
<h1 style="blue">Hello</h1>
<h1 style="background-color:blue;">Hello</h1>
All of the colors you see on a computer screen are the result of a mixture of the same three colors. What are those colors?
red, yellow, blue
green, orange, purple
red, green, blue
red, green, yellow
Which of the following is a valid color in HTML?
“blue”
“rgb(255, 0, 0)”
“#00FF00”
All of the above
Why do we use CSS?
HTML wasn’t intended to be able to style web pages, CSS allows us to add style
Separate the content of a web page from the design of a web page
Easily modify the look and feel of a web site even at a large scale
All of the above
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
style="color:blue;"
css="color:blue;"
h1 {
color {
blue;
}
}
Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?
<img style="height:200px;">
tag="img" {
height: 200px;
}
img {
height: 200px;
}
<img> {
height: 200px;
}
Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?
alert {
color: red;
}
.alert {
color: red;
}
#alert {
color: red;
}
class="alert" {
color: red;
}
Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?
logo {
font-size: 60px;
}
.logo {
font-size: 60px;
}
#logo {
font-size: 60px;
}
id="logo" {
font-size: 60px;
}
