wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML and CSS

Total questions: 18

Worksheet time: 10mins

Name
Class
Date
1.

What is HTML?

a)

HyperText Markup Language

b)

HighTower Makeup Language

c)

Plain Text on Documents

d)

Expensive Types of Candy

2.

What language is used to define the structure of a webpage?

a)

HTML

b)

CSS

c)

JavaScript

d)

French

3.

What language is used to add style to a webpage?

a)

HTML

b)

CSS

c)

JavaScript

d)

French

4.

Which is correct CSS syntax?

a)

{body; colour = black;}

b)

body: colour = black

c)

body {

colour : black;}

d)

{body colour is black}

5.

What tag do you used to create a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

6.

Which sets the colour of words in a paragraph

a)

h1 {

colour: pink }

b)

img {

colour: pink }

c)

body {

colour: pink }

d)

p {

colour: pink }

7.

Select the rule to make all the text in your web page blue and centered.

a)

p {

colour: blue; }

b)

body {

text-align: left;

colour: blue; }

c)

p {

text-align: center

colour: blue; }

d)

body {

text-align: center

colour: blue; }

8.

What symbols go around the properties for each CSS selector?

a)

< >

b)

[ ]

c)

{ }

d)

( )

9.

What does CSS stand for?

a)

Cascading style sheets

b)

Certain Sumer stand

c)

Color selctor stand

d)

Cascading style selctor

10.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
11.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
12.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
13.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
14.

<img>

a)

add an image

b)

make text italic

c)

 link to Internet<

15.

You want to set the heading to use the font Arial.

a)

h1 { font-family: arial; }

b)

h1 { font: arial; }

c)

heading 1 { font-family: arial; }

16.

You want to set the width of a horizontal rule.

a)

50px

b)

50mm

c)

50inches

17.

The correct syntax to connect an external style sheet to a Web page

a)

<style rel="stylesheet" type="text/css" href="file.css" />

b)

<link rel="stylesheet" type="text/css" href="file.css" />

c)

<attach rel="stylesheet" type="text/css" href="file.css" />

d)

<a rel="stylesheet" type="text/css" href="file.css" />

18.

The part of a CSS rule-set that defines which HTML elements the style should be applied to is a...

a)

Comment

b)

CSS sheet

c)

HTML tag

d)

CSS Selector