wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML & CSS Debugging Practice #1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Why is this image not displaying?

a)

Missing alt attribute

b)

Incorrect file extension

c)

Missing closing tag

d)

Wrong image format

2.

Why does this link not work?

a)

Missing closing tag

b)

Wrong attribute name

c)

Invalid file path

d)

HTML is case-sensitive

3.

Why does this input not submit data?

a)

Missing name attribute

b)

Missing action attribute

c)

Missing method

d)

Button must be type="submit"

4.

Why does this page show broken layout?

a)

Missing doctype

b)

Missing closing </p>

c)

Invalid nesting

d)

Extra whitespace

5.

Why is this script not running?

a)

Wrong script placement

b)

Invalid file name

c)

Wrong attribute name

d)

Script must be inside <head>

6.

Why does this table display incorrectly?

a)

Missing closing </td>

b)

Table needs <thead>

c)

tr is misplaced

d)

td must have a class

7.

Why does this label not focus the input?

a)

Missing placeholder

b)

ID mismatch

c)

Input type wrong

d)

Label must wrap input

8.

Why does this audio not play?

a)

Missing autoplay

b)

Missing type attribute

c)

Browser doesn’t support audio

d)

<source> must be inside <body>

9.

Why doesn’t this title appear?

a)

Must be inside <body>

b)

Must be inside <head>

c)

Must be inside <html> only

d)

Needs a class

10.

Why is this button unclickable?

a)

Button needs type

b)

Button always disabled

c)

Disabled attribute ignores value

d)

CSS issue

11.

Why is this text not changing color?

a)

Missing semicolon

b)

Missing colon

c)

Invalid selector

d)

CSS file not linked

12.

Why is this div not centered?

a)

Missing width

b)

Missing display

c)

Margin auto is invalid

d)

Needs position

13.

Why is this font not applied?

a)

Missing quotes

b)

Invalid font name

c)

Font not imported

d)

CSS syntax error

14.

Why does this background not appear?

a)

Missing semicolon

b)

Wrong file path

c)

Needs quotes

d)

All of the above

15.

Why is this animation not working?

a)

Missing position

b)

Animation name mismatch

c)

Missing duration

d)

Invalid property

16.

Why is z-index not working?

a)

Missing position property

b)

z-index only works on body

c)

Value too high

d)

Needs display block

17.

Why is this hover effect not working?

a)

Extra space before :hover

b)

Invalid property

c)

Needs JavaScript

d)

button must have class

18.

Why is this page not mobile-friendly?

a)

Missing charset

b)

Typo in width property

c)

Meta tags must go in the body

d)

The scale must be 2.0

19.

Why is the image not resizing properly?

a)

px should not be used

b)

Width must be in CSS

c)

The width attribute should be a number only

d)

The image format is invalid

20.

Why does this link open a blank page?

a)

Missing closing tag

b)

Missing https://

c)

The filename is incorrect

d)

Links only work with buttons