Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML5 Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the correct DOCTYPE declaration for HTML5?

a)

!DOCTYPE HTML

b)

!DOCTYPE HTML PUBLIC

c)

!DOCTYPE 5.0

d)

!DOCTYPE

2.

What simplified character encoding declaration is used in HTML5?

a)

META CHARSET="UTF-8"

b)

META ENCODING="UTF-8"

c)

META TYPE="UTF-8"

d)

META NAME="CHARSET"

3.

Which HTML5 element is used for an independent piece of content like a blog post?

a)

DIV

b)

SECTION

c)

ARTICLE

d)

ASIDE

4.

Which element is used for secondary or tangential content related to the main content?

a)

ARTICLE

b)

ASIDE

c)

SECTION

d)

FOOTER

5.

Which HTML5 element is used for navigation links?

a)

HEADER

b)

NAV

c)

FOOTER

d)

ARTICLE

6.

Which HTML5 element is used to draw graphics via JavaScript?

a)

CANVAS

b)

SVG

c)

IMG

d)

OBJECT

7.

What does the PROGRESS element represent?

a)

Completion of a task

b)

A bar chart

c)

A timeline

d)

A navigation bar

8.

In a PROGRESS element, which attribute defines the total amount of work?

a)

max

b)

value

c)

total

d)

length

9.

Which SVG tag is used to draw a circle?

a)

ROUND

b)

CIRCLE

c)

ELLIPSE

d)

SPHERE

10.

In SVG, which attribute defines the radius of a circle?

a)

cx

b)

cy

c)

r

d)

fill

11.

Which SVG element is used to define a rectangle?

a)

RECT

b)

BOX

c)

SQUARE

d)

SHAPE

12.

Which SVG element automatically closes shapes with 3 or more sides?

a)

POLYLINE

b)

POLYGON

c)

LINE

d)

ELLIPSE

13.

Which new input type creates a search box in HTML5 forms?

a)

INPUT TYPE="url"

b)

INPUT TYPE="search"

c)

INPUT TYPE="find"

d)

INPUT TYPE="look"

14.

Which attribute makes a form field mandatory before submission?

a)

required

b)

validate

c)

mustfill

d)

needed

15.

What attribute provides a hint inside a form field about what to enter?

a)

hint

b)

placeholder

c)

default

d)

title

16.

Which attribute makes an input box active when the page loads?

a)

active

b)

focus

c)

autofocus

d)

selected

17.

Which tag defines a list of predefined options for an input field?

a)

OPTIONS

b)

DATALIST

c)

SELECT

d)

LIST

18.

Which input type is used to enter a telephone number?

a)

INPUT TYPE="phone"

b)

INPUT TYPE="tel"

c)

INPUT TYPE="contact"

d)

INPUT TYPE="number"

19.

Which SVG element is used to draw shapes built from multiple connected lines?

a)

POLYGON

b)

POLYLINE

c)

LINE

d)

PATH

20.

Which attribute in SVG specifies the color inside a shape?

a)

stroke

b)

fill

c)

color

d)

background