wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML and CSS Review

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

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" />

2.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
3.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
4.
What property changes the border for an image/table?
a)
border:
b)
border-size:
c)
border-color:
5.
Which is the correct way to format a Font Family for a paragraph? (Hint: make sure you have more than one backup font!)
a)
p { font-face: Arial, Verdana, San-Serif; }
b)
p { font-family: Arial, Verdana, San-Serif; }
c)
p { family-font: Arial, Verdana, San-Serif; }
d)
p { font: Arial, Verdana, San-Serif; }
6.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

7.

What will this rule set create?


h1 {

text-decoration: underline overline dotted red;

}

a)

red waves under the heading

b)

red dots over and under the heading

c)

red waves over and under the heading

d)

red dots over the heading

8.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
9.

HTML stands for

a)

Hypertext Max Language

b)

Hypertext Media Language

c)

Hypertext Markup Language

d)

Hyper Technology Memory Language

10.

CSS stands for...

a)

Cascading Style Sheet

b)

Computer Safe Search

c)

Creative Software Sheet

d)

Computer Styling Sourcecode

11.

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

12.

Links to a CSS style sheet should be placed in which HTML section

a)

body

b)

footer

c)

head

d)

comment

13.

CSS - HTML - JavaScript are known respectively as...

a)

The content - the design - the interaction

b)

The design - the content - the interaction

c)

The interaction - the content - the design

d)

The content - the interaction - the design

14.

The tag that creates a numbered list is

a)

<li>

b)

<ol>

c)

<ul>

d)

<hr>

15.

The <hr> tag will create...

a)

a ruled line

b)

a large space

c)

a paragraph

d)

an align-right

16.

The <p> tag defines a......

a)

Heading

b)

Paragraph

c)

List

d)

Line break

17.

The <h4> tag defines

a)

A heading

b)

A paragraph

c)

A list

d)

A line break