wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML + CSS

Total questions: 13

Worksheet time: 9mins

Name
Class
Date
1.

Which is the correct HTML tag for inserting a line break?

a)
<b>
b)
<lb>
c)
<br>
d)
<break>
2.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

3.
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.
4.
Which of the following is the largest heading? 
a)

h1

b)

h2

c)

h6

d)

h4

e)

h5

5.
Which tag is used to create a hyperlink?
a)
<a>
b)
<href>
c)
<b>
d)
<i>
6.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
7.

Which property is used to change the background color of the web page in CSS?

a)

Background-Color

b)

Page-Color

c)

Background

d)

Color-Background

8.

HTML stands for...

a)
HyperText Markup Language
b)

HyperText Markup Lover

c)
HighText Markup Language
d)
HyperText Markup List
9.

CSS stands for...

a)
Cascading Style Scripts
b)
Cascading Style Structures
c)
Cascading System Sheets
d)
Cascading Style Sheets
10.

What is the purpose of the <div> tag?

a)
The
tag is used to group and style HTML elements.
b)
The
tag is used for creating hyperlinks.
c)
The
tag is used for defining the document type.
d)
The
tag is used to embed images.
11.

What will happen if you have this CSS code?

a)
The link will have a white background, green text, and 20px padding on hover.
b)
The link will have a transparent background, black text, and 10px padding on hover.
c)
The link will have a light background, dark red text, and 15px padding on hover.
d)
The link will have a dark background, light blue text, and no padding on hover.
12.

What is the purpose of <tr> tag?

a)
The tag is used to define a cell in an HTML table.
b)
The tag defines a row in an HTML table.
c)
The tag is for creating a header in an HTML document.
d)
The tag is used to style text in an HTML page.
13.

Why do we need CSS when we design with HTML?

a)
CSS is necessary to style and layout HTML content effectively.
b)
CSS is a programming language that replaces HTML.
c)
CSS is only necessary for mobile web design.
d)
CSS is used to add interactivity to HTML elements.