wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introduction to CSS

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

The acronym CSS stands for __________.

a)

Cascading Style Sheets

b)

Character Style Sheets

c)

Computer Style Sheets

d)

Collaborative Style Sheets

2.

CSS is used to control the __________ of HTML documents.

a)

layout

b)

structure

c)

content

d)

organization

3.

Styles are written inside __________.

a)

curly braces

{ }

b)

angle brackets

< >

c)

parenthesis

( )

d)

quotation marks

" "

4.

The html attributes such as color, align, width are referred to in CSS as __________.

a)

properties

b)

styles

c)

characteristics

d)

formats

5.

Internal CSS is placed inside the __________ section.

a)

<head>

b)

<html>

c)

<body>

d)

<title>

6.

The opening tag for internal CSS is __________.

a)

<style>

b)

<style type="text/css">

c)

<style type="text\css">

d)

<style type="text&css">

7.

CSS property and value are separated by _________.

a)

colon

:

b)

semi-colon

;

c)

equal sign

=

d)

comma

;

8.

The values in a CSS style are normally written __________.

a)

with a unit such as 500px.

b)

as plain numbers, such as 500

c)

in quotation marks, such as "500px"

d)

in parenthesis, such as (500px)

9.

The html tag or element, ex <p>, to which the style will be applied is called __________.

a)

Selector

b)

Property

c)

Attribute

d)

Pointer

10.

The CSS selector for <h1> element is __________.

a)

h1

b)

<h1>

c)

</h1>

d)

(h1)

11.

The CSS selector for the element <img src="logo.jpg"> is __________.

a)

img

b)

img src

c)

<img>

d)

<img src>

12.

Multiple css property and value declarations are separated with a __________.

a)

semi-colon

;

b)

colon

:

c)

comma

,

d)

space

13.

The unit of measurement for font size is mostly written as _________.

a)

pt

b)

px

c)

ps

d)

pp

14.

Which of the following CSS styles is correct?

a)

h2 {color:#45ABFF;}

b)

<h2> {color:#45ABFF;}

c)

h2 <color:#45ABFF;>

d)

h2 {color:"#45ABFF";}

15.

Which is the correctly written CSS style rule?

a)

p {font-family: Arial;}

b)

p {font-family= Arial;}

c)

<p font-family: Arial>

d)

<p font-family= "Arial">