wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML & CSS

Total questions: 40

Worksheet time: 22mins

Name
Class
Date
1.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
2.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
3.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
4.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
5.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
6.
The following tag will show a bulleted list
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
7.
Which web image format supports both transparency AND animation?
a)
PNG
b)
JPG
c)
SWF
d)
GIF
8.
Which tag defines a numbered list?
a)
OL
b)
UL
c)
LI
d)
NL
9.
The default link color for hyperlinks:
a)
green
b)
blue
c)
purple
d)
red
10.
Which tag is used to create a hyperlink?
a)
<a>
b)
<href>
c)
<b>
d)
<i>
11.
What is the correct syntax for inserting an image?
a)
<image source="untitled.jpg"/>
b)
<img src="untitled.jpg"/>
c)
<src img="untitled.jpg"/>
d)
<img scr="untitled.jpg"/>
12.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
13.
Which allows you to change the font?
a)
font-type
b)
font
c)
font-family
d)
text-font
14.
What tag is used for CSS?
a)
<style>
b)
<css>
c)
<body>
d)
<script>
15.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
16.
What will happen to the text in blue?   <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
17.
What is will the highlighted tag do? <p>My favourite colour is blue<br>I support Southend United.
</p>
a)
it will make the text bold
b)
it will place the text on another line
18.
CSS stands for?
a)
Closed Source Style
b)
Crucial Style Sheets
c)
Cascading Style Sheets
d)
Corresponding Static Style
19.
Which is NOT a web browser?
a)
Chrome
b)
Internet explorer
c)
FireFox
d)
Yahoo
20.
What best describes CSS
a)
describes how HTML elements are displayed on screen
b)
To logically divide the document
21.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
22.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
23.

</h1> is

a)

Header Tag

b)

Headline Tag

c)

Half of a tag

d)

Closing header tag

24.
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
25.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
26.
Which is the correct way to format a Font Family for a paragraph?
a)
p { font-face: Arial; }
b)
p { family-font: Arial; }
c)
p { font-family: Arial; }
d)
p { font: Arial; }
27.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
28.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
29.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
30.
Which is the selector in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
31.
Which is the property in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
32.
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; }
33.

Which one of the following is a selector?

body {

color: green;

border: 0;

}

a)

color

b)

body

c)

green

d)

border

34.

Which one is used to set background colour of a web page?

a)

background-colour

b)

background-color

c)

background-position

d)

background-image

35.

Why won't the following anchor tag work?

<a href=https://www.google.com/>click here</a>

a)

The link is incorrect. It should be ref, not href

b)

The URL is missing quotation marks

c)

There is no anchor tag in the code

d)

The href is missing a closing tag

36.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
37.
Where in your HTML document should you include the code <!DOCTYPE html>?
a)
body section
b)
doesn't matter
c)
last line
d)
first line
38.
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 (-)
39.

What type of tag is this: <!-- -->

a)

comments

b)

questions

c)

paragraph

d)

image

40.

Which is the correct HTML order...?

a)

<html> <head> </head> <body> </body> </html>

b)

<html> <head> </head> <body> </html> </body>

c)

<html> <body> </body> <head> </head> </html>

d)

<head> </head> <body> </body> <html> </html>