NEW
Font size
WorksheetsIntro To Digital Tech Web Design
Total questions: 20
Worksheet time: 10mins
Which of the following is a valid HTML tag?
h1
<>
<h1>
>h1<
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 Click Me 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:
<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 following 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>
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;
}
What does URL stand for?
Underlying Request Layout
Underlying Response Layout
Uniform Resource Locator
Usable Render List
What is the first step of viewing a web page as described in the video?
The Response: The server sends a response to the browser with the resource attached
The Request: The browser sends a message to a server requesting a resource
Rendering the Page: Your browser takes the resource and renders it in the browser window
The URL: You type the URL for the web page into your browser
What is the second step of viewing a web page as described in the video?
The Response: The server sends a response to the browser with the resource attached
The Request: The browser sends a message to a server requesting a resource
Rendering the Page: Your browser takes the resource and renders it in the browser window
The URL: You type the URL for the web page into your browser
What is the third step of viewing a web page as described in the video?
The Response: The server sends a response to the browser with the resource attached
The Request: The browser sends a message to a server requesting a resource
Rendering the Page: Your browser takes the resource and renders it in the browser window
The URL: You type the URL for the web page into your browser
What is the fourth step of viewing a web page as described in the video?
The Response: The server sends a response to the browser with the resource attached
The Request: The browser sends a message to a server requesting a resource
Rendering the Page: Your browser takes the resource and renders it in the browser window
The URL: You type the URL for the web page into your browser
