Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Form and Media Elements Quiz

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

The form needs a field for the customer’s name. Which input type should you use?

a)

input

b)

text

c)

field

d)

line

2.

For a sign-up form, you need a secure field for passwords. What’s the correct code?

a)

<input type="secret">`

b)

`<input type="password">`

c)

<input type="hidden">`

d)

<input type="pass">`

3.

A poll asks users to pick one favorite color. Which input type ensures only one selection?

a)

checkbox

b)

select

c)

radio

d)

option

4.

Another poll lets users choose multiple hobbies. Which input type allows this?

a)

radio

b)

checkbox

c)

select

d)

multiple

5.

You’re adding a drop-down list of payment methods to a checkout form. Which tag creates this?

a)

`<dropdown>`

b)

`<list>`

c)

`<select>`

d)

`<option>`

6.

Each payment method like “Credit Card” needs to be listed in the drop-down. Which tag defines these?

a)

`<item>`

b)

`<option>`

c)

<select>

d)

<li>

7.

The form needs a button to send the data. Which option(s) create a submit button?

a)

`<input type="submit">`

b)

`<button type="submit">`

c)

`<submit>`

d)

Both A and B

8.

To process the form, each field needs a unique identifier for the server. Which attribute provides this?

a)

id

b)

name

c)

value

d)

type

9.

For better usability, you label the “Email” field clearly. Which tag associates text with the field?

a)

`<text>`

b)

<description>`

c)

<label>`

d)

<caption>`

10.

The form has sections for personal info and preferences. Which tag groups related fields?

a)

<group>

b)

<fieldset>

c)

<section>

d)

<div>

11.

You require users to enter their phone number before submitting. Which attribute enforces this?

a)

mandatory

b)

required

c)

must

d)

needed

12.

A gym wants a workout video on their site. Which HTML5 tag embeds it?

a)

<media>

b)

<video>

c)

<movie>

d)

<vid>

13.

The video file is “workout.mp4”. Which attribute links it to the tag?

a)

href

b)

src

c)

link

d)

url

14.

Users need to pause or adjust the video volume. Which attribute adds these controls?

a)

control

b)

controls

c)

player

d)

buttons

15.

A relaxation site needs ambient sound. Which HTML5 tag adds audio?

a)

<sound>

b)

<audio>

c)

<music>

d)

<aud>

16.

The audio should play as soon as the page loads. Which attribute enables this?

a)

play

b)

autoplay

c)

start

d)

auto

17.

You’re laying out a news site and need a top section for the logo and title. Which element should you use?

a)

<head>

b)

<header>

c)

<top>

d)

<h1>

18.

The site needs a navigation bar with links to “Home” and “News.” Which element wraps these?

a)

<menu>

b)

<nav>

c)

<links>

d)

<section>

19.

The news site has distinct parts like “Local” and “World.” Which element defines these sections?

a)

<div>

b)

<article>

c)

<section>

d)

<aside>

20.

Each news story should stand alone as its own content. Which element is best for each story?

a)

<section>

b)

<article>

c)

<post>

d)

<blog>

21.

You add a “Fun Facts” sidebar unrelated to the main news. Which element should you use?

a)

<sidebar>

b)

<extra>

c)

<aside>

d)

<supplement>