wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Intro To Digital Tech Web Design

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is a valid HTML tag?

a)

h1

b)

<>

c)

<h1>

d)

>h1<

2.

Which of the following is an example of metadata about a webpage?

a)

The title of the webpage

b)

The body of the webpage

c)

An <h1> tag on the webpage

d)

All of the above

3.

What is the function of the <br> tag?

a)

Create a line break on the resulting webpage

b)

Create a horizontal line on the resulting webpage

c)

Italicize text

d)

Bold text

4.

Which of the following is the correct HTML code to create a hyperlink that displays Click Me and links to google.com?

a)

<a href="https://google.com">

Click Me

</a>

b)

<a href="Click Me">

https://google.com

</a>

c)

Click Me <a>https://google.com</a>

d)

<a>

Click Me

</a href="https://google.com">

5.

Which of the following lines of HTML code will insert an image into a webpage?

a)

<img>

https://codehs.com/static/img/logo.png

</img>

b)

<img>

src="https://codehs.com/static/img/logo.png"

</img>

c)

<img src="https://codehs.com/static/img/logo.png">

d)

<img https://codehs.com/static/img/logo.png>

6.

Which of the following HTML code snippets would produce the following web page:

a)

<ul>

Apples

Bananas

Oranges

</ul>

b)

<ol>

Apples

Bananas

Oranges

</ol>

c)

<ul>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

</ul>

d)

<ol>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

</ol>

7.

Which of the following tags defines a table row?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

8.

Which of the following tags defines a table header?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

9.

Which of the following HTML code snippets will generate the following table?

a)

<table border="1">

<tr>

<th>Name</th>

<th>Score</th>

</tr>

<tr>

<td>Karel</td>

<td>32</td>

</tr>

</table>

b)

<table border="1">

<tr>

<td>Name</td>

<td>Score</td>

</tr>

<tr>

<td>Karel</td>

<td>32</td>

</tr>

</table>

c)

<table border="1">

<tr>

Name

Score

</tr>

<tr>

Karel

32

</tr>

</table>

d)

<table border="1">

<th>Name</th>

<th>Score</th>


<td>Karel</td>

<td>32</td>

</tr>

</table>

10.

Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?

a)

<blue>

<h1>Hello</h1>

</blue>

b)

<h1 background-color="blue">Hello</h1>

c)

<h1 style="blue">Hello</h1>

d)

<h1 style="background-color:blue;">Hello</h1>

11.

Why do we use CSS?

a)

HTML wasn’t intended to be able to style web pages, CSS allows us to add style

b)

Separate the content of a web page from the design of a web page

c)

Easily modify the look and feel of a web site even at a large scale

d)

All of the above

12.

Which of the following is a valid CSS rule?

a)

h1 {

color: blue;

}

b)

style="color:blue;"

c)

css="color:blue;"

d)

h1 {

color {

blue;

}

}

13.

Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?

a)

<img style="height:200px;">

b)

tag="img" {

height: 200px;

}

c)

img {

height: 200px;

}

d)

<img> {

height: 200px;

}

14.

Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?

a)

alert {

color: red;

}

b)

.alert {

color: red;

}

c)

#alert {

color: red;

}

d)

class="alert" {

color: red;

}

15.

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?

a)

logo {

font-size: 60px;

}

b)

.logo {

font-size: 60px;

}

c)

#logo {

font-size: 60px;

}

d)

id="logo" {

font-size: 60px;

}

16.

What does URL stand for?

a)

Underlying Request Layout

b)

Underlying Response Layout

c)

Uniform Resource Locator

d)

Usable Render List

17.

What is the first step of viewing a web page as described in the video?

a)

The Response: The server sends a response to the browser with the resource attached

b)

The Request: The browser sends a message to a server requesting a resource

c)

Rendering the Page: Your browser takes the resource and renders it in the browser window

d)

The URL: You type the URL for the web page into your browser

18.

What is the second step of viewing a web page as described in the video?

a)

The Response: The server sends a response to the browser with the resource attached

b)

The Request: The browser sends a message to a server requesting a resource

c)

Rendering the Page: Your browser takes the resource and renders it in the browser window

d)

The URL: You type the URL for the web page into your browser

19.

What is the third step of viewing a web page as described in the video?

a)

The Response: The server sends a response to the browser with the resource attached

b)

The Request: The browser sends a message to a server requesting a resource

c)

Rendering the Page: Your browser takes the resource and renders it in the browser window

d)

The URL: You type the URL for the web page into your browser

20.

What is the fourth step of viewing a web page as described in the video?

a)

The Response: The server sends a response to the browser with the resource attached

b)

The Request: The browser sends a message to a server requesting a resource

c)

Rendering the Page: Your browser takes the resource and renders it in the browser window

d)

The URL: You type the URL for the web page into your browser