wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Design - Unit 2 CodeHS

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

Which of the following would be considered a property formatted HTML tag?

a)

<h1>Hello World<h1>

b)

<h1>Hello World</h1>

c)

<h1 text="Hello World">

d)

</h1>Hello World<h1>

2.

Most HTML tags have both an opening and a closing tag. Which of the following only has one tag (i.e. an opening tag, but no closing tag)?

a)

<a>

b)

<html>

c)

<style>

d)

<img>

3.

What is generated from the following HTML code:

a)

b)

c)

d)

Hello

Hello

Hello

5.

Which statement about formating an image’s size is true?

a)

When creating an image, you must specify both a height and a width.

b)

When creating an image you must specify either a height or a width, but not both.

c)

When creating an image, you can optionally specify a height or a width, or both.

d)

When creating an image, you do not have to specify a height or width, but if you do specify one, you must specify the other.

6.

What is the result of the following HTML code:

a)

<ol>

<li>Bread</li>

<li>Milk</li>

<li>Eggs</li>

</ol>

b)
  1. 1. Bread

  2. 2. Milk

  3. 3. Eggs

c)
  1. - Bread

  2. - Milk

  3. - Eggs

d)

a. Bread

b. Milk

c. Eggs

e)
  • * Bread

  • * Milk

  • * Eggs

7.

Which of the following could create the following text?

a)

<h3 font-size:50px">Web Design</h3>

b)

<h1 font-size:50px">Web Design</h1>

c)

<p style="font-size:50px"><strong>Web Design</strong></p>

d)
  1. All of these

8.

Suppose you are making a music streaming website and you want to make a page that displays a user’s music library.

Which of the following is the proper HTML code to create the following table:

a)

b)

c)

d)

9.

Which of the following is NOT a correctly formatted text color style?

a)

style=”color:navy”

b)

style=”color:rgb(236, 26, 189)”

c)

style=”color:rgb(300, 100, 150)”

d)

style=”color:#abcdef”

10.

What is Creative Commons?

a)


A non-profit organization that promotes free and open access to creative works.

b)

A licensing system that allows creators to share their work while retaining certain rights.

c)

A collection of copyright laws that restrict the use of creative works.

d)

A platform for artists to sell their artwork online

11.

Which of the following is a valid HTML tag?

a)

h1

b)

<>

c)

<h1>

d)

>h1<

12.

What does HTML stand for?

a)

Hidden Text Meta Language

b)

Hyper Text Markup Language

c)

Hidden Theme Markdown Level

d)

Hyper Text Markdown Language

13.

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

14.

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

15.

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

a)

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

b)

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

d)

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

16.

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

17.

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

  • * Apples

  • * Bananas

  • * Oranges

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>

18.

Which of the following tags defines a table row?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

19.

Which of the following tags defines a table header?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

20.

True or False: As long as you cite your sources, you can put any image you find online on your website.

a)

TRUE

b)

FALSE

21.

Which of the following actions will help you avoid violation of copyright laws?

a)

Always cite the source of the image

b)

Check the copyright of the image to make sure it can be used by others without permission

c)

Limit your searches to public domain images

d)

All of the above

22.

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>

23.

Which of the following is a valid color in HTML?

a)

“blue”

b)

“rgb(255, 0, 0)”

c)

“#00FF00”

d)

All of the above

24.

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?

a)

red, yellow, blue

b)

green, orange, purple

c)

red, green, blue

d)

red, green, yellow

25.

The number range for RGB colors is 0 to (a)