wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML5 Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which tag defines the root of an HTML5 document?

a)

<html>

b)

<body>

c)

<head>

d)

<main>

2.

Which tag is used for inserting images in HTML?

a)

<picture>

b)

<image>

c)

<img>

d)

<i>

3.

What does the <br> tag do?

a)

Creates a bold line

b)

Inserts a horizontal rule

c)

Breaks the line

d)

Inserts a list

4.

What tag is used to create a hyperlink?

a)

<link>

b)

<a>

c)

<src>

d)

<url>

5.

How many levels of headings are in HTML?

a)

3

b)

5

c)

6

d)

10

6.

Which tag inserts a horizontal line in a webpage?

a)

<border>

b)


<br>

c)

<line>

d)

<hr>

7.

What does &nbsp; represent?

a)

Paragraph

b)

Bold text

c)

Non-breaking space

d)

Bullet point

8.

Which tag is used to create an ordered list?

a)

  1. <ol>

b)

  • <ul>

c)

  • <li>

d)

<list>

9.

Which tag defines the document metadata?

a)

<meta>

b)

<data>

c)

<info>

d)

<header>

10.

The src attribute in the <a> tag specifies:

a)

Size of the image

b)

Path to the image file

c)

Text for the image

d)

Shape of the image

11.

Which HTML5 tag is used to define navigation links?

a)

<navigate>

b)

<nav>

c)

<menu>

d)

<link>

12.

Which attribute in a form input suggests previous user input?

a)

autofill

b)

placeholder

c)

autocomplete

d)

autotype

13.

Which of the following is a semantic HTML5 tag?

a)

<html>

b)

<article>

c)

<div>

d)

<span>

14.

The <video> tag requires which attribute to display controls?

a)

toolbar

b)

menu

c)

controls

d)

play

15.

Which tag defines a row in a table?

a)

<table>

b)

<tr>

c)

<td>

d)

<th>

16.

Which attribute provides tooltip

a)

toolkit

b)

img

c)

title

d)

for

17.

What is the correct syntax for linking internally to a section with id 'about'?

a)

<a src="#about">

b)

<a id="#about">

c)

<a href="about">

d)

<a href="#about">

18.

What tag pairs with <input list="options"> to provide suggestions?

a)

<select>

b)

<datalist>

c)

<list>

d)

<optionlist>

19.

Which form input type allows date selection in HTML5?

a)

type='text'

b)

type='calendar'

c)

type='date'

d)

type='day'

20.

Which tag defines the main content of a page?

a)

<main>

b)

<content>

c)

<section>

d)

<div>

21.

Which HTML5 input type is used to collect an email address?

a)

type='text'

b)

type='mail'

c)

type='email'

d)

type='username'

22.

Which element can be used to embed audio?

a)

<music>

b)

<sound>

c)

<audio>

d)

<play>

23.

To group related elements in a form, you use:

a)

<label>

b)

<fieldset>

c)

<group>

d)

<formset>

24.

What does the <thead> element define?

a)

Table column

b)

Table row

c)

Table header section

d)

Title of table

25.

Which attribute is used to provide a short description for accessibility in <img> ?

a)

title

b)

alt

c)

caption

d)

desc

26.

How does autocomplete='off' affect a form input field?

a)

Prevents the field from being edited

b)

Hides the input

c)

Disables autofill suggestions

d)

Enables validation

27.

What happens when the required attribute is added to an input?

a)

The input must be hidden

b)

The field becomes read-only

c)

The form cannot be submitted without input

d)

It gets a default value

28.

Which HTML5 element is used to define a self-contained composition (e.g., blog post)?

a)

<section>

b)

<aside>

c)

<article>

d)

<summary>

29.

Which of the following label attribute must be same as that of id attribute of <input>

a)

<name>

b)

<id>

c)

<value>

d)

<for>

30.

Which of the following is a non semantic page structure element

a)

<article>

b)

<aside>

c)

<div>

d)

<main>