wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML and CSS Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyperlinks and Text Markup Language

b)

Hyper Text Markup Language

c)

Home Tool Markup Language

d)

Hyper Text Main Link

2.

Which HTML tag is used to create a paragraph?

a)

<h1>

b)

<p>

c)

<br>

d)

<b>

3.

What tag is used for the largest heading?

a)

<h6>

b)

<h3>

c)

<h1>

d)

<head>

4.

Which tag creates a hyperlink?

a)

<a>

b)

<link>

c)

<href>

d)

<url>

5.

What tag displays an image on a webpage?

a)

<image>

b)

<img>

c)

<pic>

d)

<photo>

6.

Which attribute is used to specify the image file?

a)

href

b)

src

c)

link

d)

alt

7.

What tag adds a line break?

a)

<break>

b)

<lb>

c)

<br>

d)

<p>

8.

Which HTML tag is used to make text bold?

a)

<i>

b)

<b>

c)

<u>

d)

<strong>

9.

The <head> section usually contains:

a)

Text and images

b)

CSS and page title

c)

Main content

d)

Lists only

10.

What does CSS stand for?

a)

Creative Style Sheets

b)

Cascading Style Sheets

c)

Computer Style System

d)

Colorful Style Syntax

11.

Which tag is used to connect CSS to HTML?

a)

<css>

b)

<style>

c)

<link>

d)

<connect>

12.

What CSS property changes the background color?

a)

text-color

b)

background

c)

background-color

d)

color

13.

To change the font size of text, which CSS property is used?

a)

text-size

b)

font-style

c)

font-size

d)

size

14.

Which CSS property changes the text color?

a)

color

b)

background-color

c)

font-color

d)

text-color

15.

To change the font type, use:

a)

font-family

b)

text-font

c)

font-style

d)

font-type

16.

How do you write a comment in CSS so the computer ignores it?

a)

// comment

b)

/* comment */

c)

<!-- comment -->

d)

# comment

17.

The correct CSS syntax to change background to blue is:

a)

background: blue;

b)

background-color: blue;

c)

color: blue;

d)

bg: blue;

18.

What is a CSS animation used for?

a)

Changing font color only

b)

Moving or changing styles smoothly

c)

Adding images

d)

Writing code comments

19.

Which CSS property controls the animation duration?

a)

animation-speed

b)

animation-time

c)

animation-duration

d)

animation-delay

20.

Which rule defines the animation steps?

a)

@keyframes

b)

@frames

c)

animation-step

d)

animate

21.

What does a CSS transition do?

a)

Instantly change style

b)

Gradually change style

c)

Stop animation

d)

Change font

22.

To make a smooth hover effect, use:

a)

transition

b)

background

c)

hover-speed

d)

timing

23.

:hover is used when:

a)

The user scrolls

b)

The user clicks

c)

The mouse moves over an element

d)

The page loads

24.

Which CSS property adds delay before animation starts?

a)

animation-delay

b)

transition-delay

c)

animation-start

d)

wait-time

25.

Which attribute in the <a> tag specifies the link destination?

a)

link

b)

src

c)

href

d)

target