Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

N5 - HTML + CSS

Total questions: 22

Worksheet time: 17mins

Name
Class
Date
1.

This is the first tag of the web page.


<! _ _ _ _ _ _ _ html>

(a)  

2.

When writing a list, what tag should be around each item in the list?


<__> Item</__>

(a)  

3.

Name the type of addressing that has been used here:


<a href="https://www.gov.scot/news">Click here for the latest news</a>

a)

Absolute

b)

Relative

4.

We want to create a numbered list of the top 5 films.


Complete the missing tag


<_ _>

<li>Eternals</li>

<li>Avengers Infinity War</li>

<li>Thor Ragnarok</li>

<li>Black widow</li>

<li>Shang Chi</li>

</_ _ >

(a)  

5.

What tag is used to include an image on a web page?

(a)  

6.

Complete the missing part of the image tag below.


<img _ _ _ = "pic1.jpg">

(a)  

7.

This attribute of the <img> provides a description of the image if the image fails to display on the web page.


<img src="pic2.png" _ _ _ = "Picture 2">

(a)  

8.

This tag allows you to group tags together and create sections in a web page.


<____> </____>

(a)  

9.

What is missing from the following audio tag?


<audio controls>


< (a)   src="music.mp3" type="audio/mpeg">


</audio>

10.

Write the missing tag from this HTML page

<!DOCTYPE html>

<html>

<____>

<title>Web page title</title>

</____>

<body>

</body>

</html>

(a)  

11.

Name the type of addressing that has been used here:

music/artists/female/adele_hello.mp3

a)

Relative

b)

Absolute

12.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma ,
b)
semi-colon ;
c)
colon :
13.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
14.
What is the correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
15.
What CSS property is used to change the background color? 
a)
color
b)
bgcolor
c)
bg-color 
d)
background-color
16.
What code links your CSS to your HTML file?
a)
<link href="stylesheet.css"/>
b)
<link type="text/css" href="stylesheet.css"/>
c)
<link type="text/css" rel="stylesheet" href="stylesheet"/>
d)
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
17.

What kind of hyperlink takes you to another page on another website?

a)

Internal Link

b)

Exit Link

c)

External Link

d)

Inside Link

18.

Why is compression important?

a)

To increase transmission speeds.

b)

To reduce bit depth.

c)

To reduce file sizes so that transmission speed is slowed.

d)

To allow lossy compression to remove extra data.

19.

The html code above contains an error. What is it?

a)

Missing </source>

b)

The attribute type contains that wrong information.

c)

The tag should be a <video> tag not an <audio> tag.

d)

src= should be source=.

20.
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; }
21.
Which is the selector in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
22.

Inside an external CSS file which of the following get first priority?

a)

p{ color:Red;}

b)

*{color:Black;}

c)

.TextClass{color:Purple;}

d)

#Text{color:Blue;}