wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Styling with CSS Quiz Review

Total questions: 66

Worksheet time: 37mins

Name
Class
Date
1.

What does CSS stand for?

a)

Colorful Style Sheets

b)

Creative Style Sheets

c)

Cascading Style Sheets

d)

Computer Style Sheets

2.

What is the correct HTML for referring to an external style sheet?

a)

<link rel="stylesheet" type="text/css" href="mystyle.css">

b)

<stylesheet>mystyle.css</stylesheet>

c)

<style src="mystyle.css">

3.

Where in an HTML document is the correct place to refer to an external style sheet?

a)

In the <head> section

b)

In the <body> section

c)

At the end of the document

d)

In the <css> section

4.

Which HTML tag is used to define an internal style sheet?

a)

<style>

b)

<css>

c)

<script>

d)

<body>

5.

Which HTML attribute is used to define inline styles?

a)

style

b)

styles

c)

font

d)

class

6.

Which is the correct CSS syntax?

a)

body:color=black;

b)

{body;color:black;}

c)

body {color: black;}

d)

{body:color=black;}

7.

How do you insert a comment in a CSS file?

a)

/* this is a comment

b)

<* this is a comment *>

c)

<! this is a comment >

d)

/* this is a comment */

8.

What type of styles are easy to interpret because they are applied directly to the elements they affect?

a)

CSS

b)

Inline

c)

Internal

d)

External

9.

Which of the following is a goal of style sheets?

a)

To make it easy to code

b)

To mix the development of the style with the content

c)

To separate the development of the style with the content

d)

So you'll learn more than one coding language

10.

Which form of CSS breaks style specifications into individual modules?

a)

CSS 1.0

b)

CSS 2.0

c)

CSS 2.1

d)

CSS 3.0

11.

What is the name of a text file that contains style declarations?

a)

HTML file

b)

Internal style sheet

c)

External style sheet

d)

Inline style sheet

12.

Why would you want to create alternate style sheets?

a)

To benefit individuals with disabilities

b)

To allow you to change your style at a moment's notice

c)

To alternate styles frequently

d)

To apply to different pages in the site

13.
What four “theories” affect the application of CSS formatting?
a)
 cascade, inheritance, descendant, and clarity.
b)
 cascade, inheritance, descendant, and specificity.
c)
 code, inheritance, descendant, and specificity.
d)
HTML, inheritance, descendant, and specificity.
14.

When does style inheritance occur?

a)

When you have one or more conflicting styles

b)

When you have no conflict of styles

c)

When your style sheet is incorrect

d)

When you don't like the original style

15.

Which of the following values would precisely describe a color?

a)

Aqua

b)

0033ff

c)

Aquamarine

d)

color: gray

16.

What are RGB values based on?

a)

Red, Gold and Brown lights

b)

Red, Gold and Blue lights

c)

Red, White and Blue lights

d)

Red, Green and Blue lights

17.

What is the default font that web browsers typically use?

a)

Arial

b)

Times New Roman

c)

Verdana

d)

Calibri

18.

The HTML tag for an image is

a)

<img>

b)

<a>

c)

<h1>

d)

<p>

19.

What are the two attributes which must always be included in <img>

a)

href and lang

b)

src and alt

c)

style and id

d)

id and class

20.

Of the following, which is NOT web safe for an image format

a)

png

b)

jpg

c)

gif

d)

bmp

21.
1.Standard format on web for animation
2.Supports transparency
3.Uses lossless compression
4.Supports 256 colors
a)
PSD
b)
JPEG
c)
GIF
d)
PNG
22.
1.Supports transparency 
2.Uses lossless compression
3.Supports several different color depths; including 256 colors and 16 million colors
4. Commonly used for online viewing of images
a)
JPEG
b)
PDF
c)
PNG
d)
GIF
23.

What is the correct way to create a CSS file?

a)

css.styles

b)

styles.css

c)

style.ccs

d)

stylesheet.scss

24.

Style rules are added in a separate document with what extension?

a)

.html

b)

.htm

c)

.css

d)

.css3

25.

What type of program do you use to create a style sheet?

a)

text editor

b)

web builder

c)

css editor

d)

word processing

26.

Where are inline styles typed?

a)

In the external style sheet

b)

Inside the <style> tag

c)

Inside the <head> tag

d)

In the body, inside the element tag

27.
An internal style sheet is also known as a(n) _____ style sheet.​
a)
embedded
b)
sequential
c)
inline
d)
insync
28.

How many parts are in a CSS rule?

a)

2

b)

3

c)

4

d)

5

29.

The selector rule includes the ________, such as p or h2.

a)

Who

b)

What

c)

How

d)

Where

30.

The property rule includes the _________, such as the font color.

a)

Who

b)

What

c)

How

d)

How much

31.

The value rule includes the _______, such as 14px.

a)

Why

b)

What

c)

How

d)

How much

32.

Number of selectors used when creating internal and external CSS.

a)

2

b)

3

c)

4

d)

5

33.
the distance between two letters within a word
a)
kerning
b)
baseline shift
c)
tracking
d)
alignment
34.
the distance between letters in entire words or groups of words
a)
kerning
b)
baseline shift
c)
tracking
d)
alignment
35.
the distance between the line of text
a)
kerning
b)
leading 
c)
tracking
d)
alignment
36.

What type of language is CSS?

a)

color-based

b)

style-based

c)

code-based

d)

text-based

37.

Hexadecimal system is based on a _________ numbering system.

a)

10

b)

2

c)

8

d)

16

38.

How many color names does CSS support?

a)

140

b)

256

c)

1280

d)

7 million

39.

What is the name of the CSS selector to style the element with id named car?

a)

.car

b)

$car

c)

#car

d)

>car

e)

car

40.

Which of the following are valid ways to style one specific element on an HTML page? Select all that apply.

a)

Use a class

b)

Use an id

c)

Use an inline style

d)

Use an element selector

41.

What is added to the opening tag of an element to give the element a unique identity?

a)

style

b)

class

c)

id

d)

ol

42.

Sometimes you want to assign the same declaration to multiple selectors. To do this, type the selectors with a ____ after each one except the last.

a)

colon

b)

comma

c)

semi-colon

d)

period

43.

In CSS, one or more __________ follow the selectors.

a)

declarations

b)

styles

c)

classes

d)

id's

44.

Label the sections of this CSS rule.

a)

A = Selector, B = Declaration, C = Declaration

b)

A = h1 tag, B = attribute, C = attribute

c)

A = class selector, B = property, C = property

d)

A = id selector, B = property value pair, C = property value pair

45.

Label the sections of this CSS rule.

a)

D = property, E = value, F = property, G = value

b)

D = color, E = blue, F = font, G = 12 pixel

c)

D = configuration, E = setting, F = configuration, G = setting

d)

D = tag selector, E = value, F = tag selector, G = value

46.

What attribute determines the horizontal alignment of text?

a)

alt

b)

align

c)

text-align

d)

valign

47.
An _____ style sheet is used to create styles that apply to more than one webpage in a website.​
a)
embedded
b)
external
c)
internal
d)
inline
48.
The four values of left (the default), center, right, or justify is used by the _____ property.​
a)
display
b)
margin-padding
c)
text-align
d)
box-shadow
49.
An embedded style sheet takes precedence over an external style sheet.​
a)
true
b)
false
50.
Which level of style sheet would you use to define the background color and all font styles to a single page within your site?
a)
embedded style sheet
b)
external style sheet
c)
inline style sheet
51.

What attribute specifies the file name for the external style sheet?

a)

link

b)

href

c)

text

d)

style

52.

If you want to change an inline style, what do you have to do?

a)

Find the html line of code in the html document body

b)

change the .css style sheet

c)

change the css in the head section

d)

find the css declaration inside the <style> tag

53.

What are documents with rule sets called?

a)

Stylesheets

b)

Selector files

c)

Rule Documents

d)

Property files

54.
What year does W3C endorsed CSS and included styles sheets in the next version of CSS?
a)
1994
b)
1996
c)
1997
55.
CSS 2 came out in 1998.
a)
TRUE
b)
FALSE
56.

Where do you need to place comments for an internal style sheet?

a)

in the .css document

b)

anywhere inside the head

c)

inside the <style> tag

d)

anywhere in the html document

57.

Which of these is a disadvantage of style sheets?

a)

ease of use

b)

time efficiency

c)

rendering of different dimensions

d)

load time

58.

Which one of the following is a universal selector?

a)

.

b)

*

c)

#

d)

;

59.

Which one of the following is a class selector?

a)

.people

b)

#world

c)

:one

d)

*ship

60.

If you want the name of a person to appear in blue in any of the web pages that you have, which type of selector is most appropriate?

a)

Universal

b)

Class

c)

ID

d)

Tag

61.
How do you add a background color for all <h1> elements?
a)
 all.h1 {background-color:#FFFFFF;}
b)
 h1 {background-color:#FFFFFF;}
c)
h1.all {background-color:#FFFFFF;}
62.

Which property is used to change the background color?

a)

bgcolor

b)

background-color

c)

bcolor

d)

backcolor

63.

The following picture is a representation of a?

a)

property

b)

The Declaration

c)

Value

d)

Selector

64.

What goes at the end of every item set in the Style section?

color purple

font-size 56

a)

:

b)

;

c)

>

d)

</div>

65.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
66.

How does a browser know how to format an HTML page?

a)

By reading the head section

b)

By reading the style sheet

c)

By reading the html code in the body

d)

By reading the html