Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Day - 3 Workshop quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does CSS stand for?

a)
  • A) Computer Style Sheets

b)
  • B) Cascading Style Sheets

c)
  • C) Creative Style Sheets

d)
  • D) Colorful Style Sheets

2.

Where in an HTML document is the correct place to refer to an external CSS file?

a)
  • A) At the end of the document

b)
  • B) In the <body> section

c)
  • C) In the <head> section

d)
  • D) Right after the <title> tag

3.

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

a)
  • A) <style>

b)
  • B) <css>

c)
  • C) <script>

d)
  • D) <stylesheet>

4.

How do you change the background color of an element in CSS?

a)
  • A) color: blue;

b)
  • B) background-color: blue;

c)
  • C) bg-color: blue;

d)
  • D) background: blue-color;

5.

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

a)
  • A) text-color

b)
  • B) font-color

c)
  • C) color

d)
  • D) text-style

6.

What is the correct CSS syntax to make all the <p> elements bold?

a)
  • A) p {font-weight: bold;}

b)
  • B) <p >

c)
  • C) p {text:bold;}

d)
  • D) <p >

7.

Which CSS property is used to change the font size of text?

a)
  • A) font-style

b)
  • B) text-style

c)
  • C) font-size

d)
  • D) text-size

8.

How do you select an element with id container in CSS?

a)
  • A) .container

b)
  • B) #container

c)
  • C) *container

d)
  • D) container

9.

How do you select all <p> elements inside a <div> with class .content?

a)
  • A) div.content p

b)
  • B) .content p

c)
  • C) p .content

d)
  • D) content.p

10.

Which property is used to add space between the content and border of an element?

a)
  • A) padding

b)
  • B) margin

c)
  • C) border-spacing

d)
  • D) spacing

11.

What is the correct way to make text italic in CSS?

a)
  • A) font-style: italic;

b)
  • B) text-style: italic;

c)
  • C) text-italic: true;

d)
  • D) font-italic: yes;

12.

Which property would you use to center-align text inside an element?

a)
  • A) align: center;

b)
  • B) text-center: true;

c)
  • C) text-align: center;

d)
  • D) align-text: center;

13.

How can you make a list display horizontally instead of vertically?

a)
  • A) list-style-type: horizontal;

b)
  • B) display: inline;

c)
  • C) text-align: horizontal;

d)
  • D) display: block;

14.

Which property controls the position of an element?

a)
  • A) float

b)
  • B) display

c)
  • C) position

d)
  • D) layout

15.

How do you select an element with class nav in CSS?

a)
  • A) #nav

b)
  • B) nav

c)
  • C) .nav

d)
  • D) *nav