wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8.10 Introduction to CSS

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

What does CSS stand for?

a)

Computer Style Sheets

b)

Creative Style Sheets

c)

Cascading Style Sheets

d)

Custom Style Syntax

2.

Which of the following is the correct way to apply an external CSS file to an HTML document?

a)

<css>styles.css</css>

b)

<link rel= "stylesheet" href= "styles.css">

c)

<style>styles.css

</styles>

d)

<script src= "styles.css">

</script>

3.

Which CSS property is used to change the text color of an element?

a)

font-color

b)

text-style

c)

color

d)

text-color

4.

Which symbol is used to refer to an ID selector in CSS?

a)

. (dot)

b)

#(hashtag)

c)

@ (at symbol)

d)

* (asterisk)

5.

What is the correct syntax for selecting all <p> elements in an external CSS file?

a)

p { color: blue; }

b)

<p> { color: blue; }

c)

#p { color: blue; }

d)

.p { color: blue' }

6.

Inline CSS is written inside a <style> tag in the <head> section of an HTML document.​ ​ (a)  

Choose from the below words
True
False
7.

The property background-color is used to change the text color of an element.​ (a)  

Choose from the below words
False
True
8.

The font-size property is used to change the size of text in CSS.​ (a)  

Choose from the below words
True
False
9.

A class selector can be used multiple times in an HTML document, while an ID selector should be unique.​ (a)  

Choose from the below words
True
False
10.

The default position of an HTML element is relative.​ (a)  

Choose from the below words
True
False