wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Design 1: Final Review

Total questions: 48

Worksheet time: 24mins

Name
Class
Date
1.

What type of styling is used in this image?

a)

Inline

b)

Embedded

c)

External

d)

Imported

2.

What type of styling is used in this image?

a)

Inline

b)

Embedded

c)

External

d)

Imported

3.

What type of styling is used in this image?

a)

Inline

b)

Embedded

c)

External

d)

Imported

4.

What is circled in this picture?

a)

Rule

b)

Selector

c)

Declaration

d)

Property

e)

Value

5.

What is circled in this picture?

a)

Rule

b)

Selector

c)

Declaration

d)

Property

e)

Value

6.

What is circled in this picture?

a)

Rule

b)

Selector

c)

Declaration

d)

Property

e)

Value

7.

What is circled in this picture?

a)

Rule

b)

Selector

c)

Declaration

d)

Property

e)

Value

8.

This is a picture of a...

a)

Rule

b)

Selector

c)

Declaration

d)

Property

e)

Value

9.

What are two naming conventions for classes and ids?

a)

Names should be short and concise.

b)

Names should be specific and descriptive.

c)

Names should contain special characters and spaces.

d)

Names should use spaces between words.

10.

Rules for creating class (and id) names:

a)

Cannot have spaces

b)

Cannot start with a number

c)

Can start with a number

d)

Can start with a space

11.

How many classes can you have for each HTML element?

a)

As many as you want

b)

One (1)

c)

Two (2)

d)

Ten (10)

12.

Where do we add the class information in the HTML tag?

a)

We add the class information in the opening tag

b)

We add it right before each opening tag

c)

We add it in the closing tag

d)

We add it right after each closing tag

13.

What is a class in CSS?

a)

Attribute to add hyperlinks

b)

Attribute to add colors

c)

Attribute to style a specific group of elements

d)

Attribute to add borders

14.

When we use the tag as a selector, it selects ______ elements with that tag.

a)

HTML

b)

CSS

c)

Javascript

d)

XML

15.

For embedded styling, where do we add the <style> tags on our HTML page. Why do they go there?

a)

We add them in the <head> tag. They go there because they are part of the metadata that affects the appearance of the page.

b)

We add them in the <body> tag. They go there because they should be visible to users.

c)

We add them inside every tag. They go there because they only affect that section.

d)

We add them after the closing </head> tag. They go there because they load faster.

16.

What are possible values for the color property? (multiple correct answers)

a)

named colors

b)

hexadecimal color values

c)

RGB color values

d)

color can't be added

17.

What are 2 problems with using HTML to style pages?

a)

HTML styling is not scalable

b)

HTML styling takes up a lot of time

c)

a HTML styling improves website speed

d)

HTML styling automatically optimizes images

e)

HTML styling is always responsive

18.

What font color will this p element have after being styled by the given CSS?

a)

red

b)

green

c)

blue

d)

black

19.

What font color will this p element have after being styled by the given CSS?

a)

red

b)

green

c)

blue

d)

black

20.

What font color will this p element have after being styled by the given CSS?

a)

red

b)

green

c)

blue

d)

black

21.

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

A. Styling with CSS is more scalable than using style= on each HTML tag that you want to style
B. You can change HTML tag style attributes with CSS files that are also possible using inline style= on an HTML tag

a)

A only

b)

B only

c)

Both A and B

d)

Neither A nor B

22.

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

23.

In what order does the Cascade look at factors to determine which CSS rule to follow?

a)

Order, Importance, Specificity

b)

Importance, Order, Specificity

c)

Specificity, Importance, Order

d)

Importance, Specificity, Order

24.

What is the function of the Cascade in CSS?

a)

The Cascade is a set of guidelines to make your site look beautiful.

b)

The Cascade helps you write styling for your websites quickly by providing easy templates to use.

c)

The Cascade determines which CSS rules will be applied when multiple rules for an item are contradictory.

d)

The Cascade will make sure there are no typos in your CSS rules.

25.

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)

b)

c)

d)

26.

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

a)

b)

c)

d)

27.

Why do we use CSS?

a)

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

b)

It separates the content of a web page from the design of a web page.

c)

To store data for the website

d)

To structure the content of a webpage

28.

Which of the following is a valid CSS rule?

a)

b)

c)

d)

29.

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

a)

b)

c)

d)

30.

Which of the following selects images as the mouse hovers over them and sets their size to 350px by 350px?

a)

b)

c)

d)

31.

Which of the following is not a property that can hide the visibility of an element?

a)

hidden

b)

visibility

c)

opacity

d)

display

32.

Which of the following defines an animation change-color that changes the font color from green to red?

a)

b)

c)

d)

33.

Which of the following will result in a smooth transition from green to red as the mouse clicks on h1 tags?

a)

b)

c)

d)

34.

Which of the following applies an animation named grayscaleFilter over 10 seconds to every img tag?

a)

b)

c)

d)

35.

Which of the following defines an animation increase-font that increases the font size from 5px to 20px?

a)

b)

c)

d)

36.

What is the difference between <span> and <div>?

a)

<span> is better for styling text, while <div> is better for styling images

b)

<span> is for styling multiple elements, while <div> is for styling single elements at a time

c)

<span> is used to style elements, while <div> is used to embed parts of other websites

d)

<span> is used to group and style inline elements, while <div> creates a line break

37.

If a selector’s display property is set to none, what happens to the selected elements?

a)

They remain visible but cannot be clicked

b)

They are completely removed from the layout and do not take up space

c)

They become transparent but still affect the layout

d)

They are hidden but still take up space on the page

38.

Which of the following will insert an exclamation point after every h2 element?

a)

b)

c)

d)

39.

Which of the following will turn the h1 tag blue as the mouse hovers over it?

a)

b)

c)

d)

40.

What would happen to the body as a result of this CSS rule?

a)

Each element in the body would change to red and italic as the mouse moves over it.

b)

The entire body would change to red and italic when the mouse moves over any part of it. 

c)

The body would always be red and italic.

d)

Nothing. This is an invalid rule. 

41.

How can I select all h1 tags that are immediate children of div tags?

a)

b)

c)

d)

42.

Which of the following selects all p tags with the class alert and makes them red?

a)

b)

c)

d)

43.

Would this rule affect the second image in the snippet of code provided?

a)

Yes

b)

No

c)

Maybe

d)

No images would be affected

44.

Would this rule affect the first image in the snippet of code provided?

a)

Yes.

b)

No.

c)

Maybe.

d)

No images would be affected.

45.

Which statement is true about spans and divs? 

a)

Spans and divs will add line breaks before and after they are used.

b)

Spans will add line breaks before and after they are used; divs will not add line breaks.

c)

Neither spans and divs will add line breaks before and after they are used.

d)

Spans will add line breaks before and after they are used; divs will not add line breaks.

46.

______________ are commonly used to style sections of text.

a)

spans

b)

divs

c)

headers

d)

p tags

47.

Why are <div> elements commonly used in HTML?

a)

To provide semantic meaning to the content

b)

To group and style content without adding semantic meaning

c)

To improve search engine optimization

d)

To make content accessible for screen readers

48.

Why are semantic tags used in HTML?

a)

To provide semantic meaning to the content

b)

To group and style content without adding semantic meaning

c)

To improve search engine optimization

d)

To make content accessible for screen readers