wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML/CSS

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does HTML stand for?

a)

HyperText Markup Language

b)

HighText Main Language

c)

Home Tool Markup Language

2.

What is the primary purpose of CSS (Cascading Style Sheets)?

a)

To define the structure and layout of a web page

b)

To add interactivity and behavior to a web page

c)

To define the presentation and styling of a web page

3.

Which HTML element is used to define a hyperlink?

a)

<a>

b)

<h1>

c)

<p>

4.

What is the correct way to add an external CSS file to an HTML document?

a)

<style src="styles.css">

b)

<link rel="stylesheet" href="styles.css">

c)

<script src="styles.css">

5.

Which CSS property is used to change the text color?

a)

text-color

b)

color

c)

font-color

6.

How do you select an element with the id "myElement" in CSS?

a)

#myElement

b)

.myElement

c)

*myElement

7.

Which CSS property is used to add spacing between elements?

a)

margin

b)

padding

c)

spacing

8.

Which HTML tag is used to define a table row?

a)

<tr>

b)

<td>

c)

<table>

9.

How do you center-align text in CSS?

a)

text-align: center;

b)

align: center;

c)

justify-content: center;

10.

What does the CSS property "display: none;" do?

a)

It hides an element from the web page.

b)

It changes the font size of an element to zero.

c)

It removes all borders from an element.