wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

test html/css

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

The Tag used for the largest text on the page:

a)

h0

b)

h1

c)

h6

d)

h7

2.

The smallest heading Tag used for in the page:

a)

h0

b)

h1

c)

h6

d)

h7

3.

Which of the following is a valid HTML code?

a)

<h2></h2>

b)

<span </span>

c)

<input/>

d)

<body>

4.

Which of the following center the text in the <h3> tag:

a)

<h3 style=center>

b)

h3 ( text-align: center; )

c)

h3 { text-align: center; }

d)

Use the tab key to center.

5.

What <i> is for?

a)
The tag is for bolding text.
b)
The tag is for italicizing text.
c)
The tag is for creating links.
d)
The tag is for adding images.
6.

Each rule in CSS should end with:

a)

:

b)

;

c)

.

d)

,

7.

Which of the following is a valid HTML code?

a)

h1 { font-size: 75 px; }

b)

h1 { font-size: 75px }

c)

h1 font-size: 75px; }

d)

h1 { font-size: 75px; }

8.

In the rule: h1 { font-size: 75px; } what is h1?

a)

CSS

b)

Selector

c)

Value

d)

An increase in text size

9.

Which of the following is a valid CSS comment?

a)

/* This is a comment */

b)

// This is a comment

c)

# This is a comment

d)

-- This is a comment

10.

What does the margin property in CSS control?

a)

Text alignment

b)

Font size

c)

Space outside an element

d)

Space inside an element

11.

margin: auto; can be used to:

a)

Set all margins to 0.

b)
Center an element horizontally within its parent container.
c)
Set the width of an element to 100%.
d)
Add padding to an element's sides.
12.

the property used to change text color is:

a)

text-color

b)

color

c)

font

d)
background-color
13.

How to make a circle out of a square with css:

a)
Apply a background color to the square;
b)
Use border-style: solid;
c)
Set width to 100px and height to 50px;
d)
Set width and height equal, and use border-radius: 50%;
14.

How would you apply verdana(font) to h3, div

and header?

a)

.h3 .div .header { font-family: 'Verdana'; }

b)
h3, div, header { font-style: 'Verdana'; }
c)

.h3, .div, .header { font-family: 'Verdana'; }

d)

h3, div, header { font-family: 'Verdana'; }

15.

What is the difference between classes and ids in html:

a)

Classes are not unique but IDs must be unique within a page.

b)
Classes are more specific than IDs in CSS.
c)
Classes can only be used once per page; IDs can be reused.
d)

no difference

16.

What is the difference between classes and ids in CSS:

a)

Classes always start with "#" and Ids start with "."

b)

Classes always start with "." and Ids start with "#"

c)

no difference

d)
IDs are used for styling, while classes are for JavaScript functionality.
17.

in how much digits colors are represented in CSS with "#" symbol:

a)

4 or 8

b)
6
c)

3 or 6

d)

3

18.

What’s responsive web design for?

a)
To ensure websites are accessible and user-friendly on any device.
b)
To limit access to certain devices.
c)
To increase the loading speed of websites.
d)
To make websites look the same on all devices.