wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Design: Pop Quiz

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Which of the following is a valid CSS rule?

a)

h1 {

color: blue;

}

b)

<h1> {

color: blue;

}

c)

h1 {

color="blue";

}

d)

h1 {

color=blue;

}

2.

CSS rules have a selector that defines which HTML elements the rule applies to.

We’ve learned about the following CSS Selectors:


--> Select by tag name

--> Select by class name

--> Select by id name


Which of the following ranks the selectors from highest precedence to lowest precedence?

a)

Select by tag name, select by class name, select by id name

b)

Select by id name, select by tag name, select by class name

c)

Select by id name, select by class name, select by tag name

d)

Select by class name, select by id name, select by tag name

3.

Which of the following statements are true about styling your web pages with CSS:


I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style


II. You can create styles with CSS that are not possible using style= on an HTML tag

a)

I only

b)

II only

c)

I and II

d)

Neither I nor II

4.

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;

}

5.
a)

red

b)

green

c)

blue

d)

black

6.
a)

red

b)

blue

c)

green

d)

black

7.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

8.

Which of the following classifies as metadata about a webpage?

a)

The tags that make up the body of the webpage

b)

A table on a webpage

c)

A list on a webpage

d)

The title of the webpage

9.

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

10.

Which of the following is a valid color in HTML?

a)

“blue”

b)

“rgb(255, 0, 0)”

c)

“#00FF00”

d)

All of the above