wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS Fundamentals Worksheet (Grade 14)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does CSS stand for?

a)

Computer Style Sheets

b)

Cascading Style Sheets

c)

Creative Style System

d)

Colorful Style Sheets

2.

What is the main purpose of CSS?

a)

To create databases

b)

To add logic to web pages

c)

To describe how HTML elements are displayed

d)

To connect servers

3.

Which format represents correct CSS syntax?

a)

selector = property : value

b)

selector { property: value; }

c)

selector (property, value)

d)

selector [property=value]

4.

Which part of CSS selects the HTML element to style?

a)

Property

b)

Value

c)

Selector

d)

Attribute

5.

How many main types of CSS are there?

a)

One

b)

Two

c)

Three

d)

Four

6.

Which CSS is written directly inside an HTML tag?

a)

External CSS

b)

Internal CSS

c)

Inline CSS

d)

Browser CSS

7.

Where is Internal CSS written?

a)

Inside a ta<body>g

b)

Inside <style>a

c)

In a separate .css file

d)

Inside a html element

8.

Which tag is used to link an external CSS file?

a)

<css>

b)

<style>

c)

<a>

d)

<link>

9.

Which CSS selector selects all elements?

a)

#

b)

.

c)

*

d)

@

10.

Which symbol is used for an ID selector?

a)

.

b)

#

c)

*

d)

,

11.

Can id be used for multiple html elements

a)

yes

b)

no

12.

Which CSS has the highest priority?

a)

External CSS

b)

Internal CSS

c)

Browser default styles

d)

Inline CSS

13.

Which CSS has the lowest priority?

a)

Inline CSS

b)

Internal CSS

c)

External CSS

d)

Browser default styles

14.

Which of the following is a valid hex color code for red?

a)

#fff44

b)

#gg0023

c)

#ff0000

d)

rgba(255,0,0,1)

15.

Which color format allows transparency?

a)

Color name

b)

Hex code

c)

RGB

d)

RGBA

16.

Which property is used to change the background color?

a)

color

b)

background-color

c)

bg-color

d)

bgcolor

17.

Which property prevents a background image from repeating?

a)

background-size

b)

background-position

c)

background-repeat

d)

background-attachment

18.

Which CSS property creates space outside an element?

a)

Padding

b)

Border

c)

Margin

d)

Content

19.

Which CSS property creates space inside an element?

a)

Margin

b)

Padding

c)

Border

d)

Width

20.

Which is NOT a part of the CSS box model?

a)

Content

b)

Padding

c)

Border

d)

Alignment