wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Basics Quiz

Total questions: 19

Worksheet time: 10mins

Name
Class
Date
1.

What does CSS stand for?

a)

Cascading Style Sheets

b)

Cascading Simple Sheets

c)

Color Style Sheets

d)

Creative Style Sheets

2.

How can CSS styles be defined?

a)

In separate files

b)

Only in HTML

c)

Only in JavaScript

d)

Only in text files

3.

What is a way to define colors in CSS?

a)

Using only shapes

b)

Using only images

c)

Using only numbers

d)

Using color names

4.

What does the hex value #ff0000 represent?

a)

Blue color

b)

Green color

c)

Yellow color

d)

Red color

5.

What does the 'rgba' function define?

a)

Only size

b)

Only position

c)

Color with transparency

d)

Only color

6.

What does 'font-size' control?

a)

Color of the text

b)

Size of the text

c)

Position of the text

d)

Style of the text

7.

What unit is commonly used for font size?

a)

Pixels

b)

Grams

c)

Kilometers

d)

Liters

8.

What does 'padding' do in CSS?

a)

Space inside an element

b)

Space outside an element

c)

Size of an element

d)

Color of an element

9.

What does 'margin' control?

a)

Height of an element

b)

Color of an element

c)

Space inside an element

d)

Space outside an element

10.

What does 'border' define?

a)

Edge of an element

b)

Color of text

c)

Size of text

d)

Background color

11.

What does 'background-color' do?

a)

Sets the margin color

b)

Sets the background color

c)

Sets the text color

d)

Sets the border color

12.

What is a block element?

a)

Takes full width and starts a new line

b)

Takes minimum width

c)

Is a type of image

d)

Is invisible

13.

What is an inline element?

a)

Is a type of background

b)

Is a type of border

c)

Takes full width

d)

Takes minimum width and stays in the same line

14.

What does 'min-width' control?

a)

Height of an element

b)

Color of an element

c)

Maximum width of an element

d)

Minimum width of an element

15.

What does 'max-height' control?

a)

Color of an element

b)

Maximum height of an element

c)

Minimum height of an element

d)

Width of an element

16.

What is the purpose of CSS?

a)

To write text

b)

To style HTML elements

c)

To make sounds

d)

To create images

17.

What does 'background-image' do?

a)

Sets margin size

b)

Sets border style

c)

Sets text color

d)

Sets an image as background

18.

What is the purpose of 'font-family'?

a)

Defines the position of text

b)

Defines the style of text

c)

Defines the size of text

d)

Defines the color of text

19.

What does 'font-weight' control?

a)

Size of the text

b)

Color of the text

c)

Position of the text

d)

Thickness of the text