wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Adding Interactive Elements in HTML

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the HTML element used to create an interactive button?

a)

<input type="button">

b)

<button>

c)

<div class="button">

d)

<a href="button.html">

2.

What can be placed inside a element to customize its content?

a)

Only text

b)

Text or images

c)

Only images

d)

None of the above

3.

What is the purpose of the type attribute in an element?

a)

Change the input's size

b)

Specify the type of interaction for the input

c)

Automatically apply CSS styles

d)

It has no purpose

4.

Which HTML tag is used to create a dropdown menu?

a)

<dropdown>

b)

<menu>

c)

<select>

d)

<input type="dropdown">

5.

How is a dropdown menu structured in HTML?

a)

Using and elements inside it.

b)

Using and elements inside it.

c)

Using and CSS classes for styling.

d)

Using and to create options.

6.

Which of the following is NOT a type of input element () in HTML?

a)

Text (type="text")

b)

Checkbox (type="checkbox")

c)

Radio button (type="radio")

d)

Selector (type="select")

7.

Which tool allows you to send the values of inputs on an HTML page to another file or server?

a)

JavaScript

b)

HTML forms

c)

CSS

d)

None of the above

8.

What is the primary use of JavaScript with interactive HTML elements?

a)

Change the background color

b)

Read input values and perform actions

c)

Organize page content

d)

Add external links

9.

How is a checkbox defined in HTML?

a)

<checkbox>

b)

<input type="checkbox">

c)

<input type="check">

d)

<box>

10.

What does the tag allow you to do in an HTML file?

a)

Add interactive images

b)

Group related inputs and send their data

c)

Apply CSS styles to inputs

d)

Navigate between different web pages

11.

What type of input allows users to select only one option from a group?

a)

<input type="checkbox">

b)

<input type="radio">

c)

<input type="text">

d)

<input type="dropdown">

12.

Which HTML element is used to group related inputs for submission?

a)

<section>

b)

<form>

c)

<fieldset>

d)

<group>

13.

What is the purpose of the element in a dropdown?

a)

To style the dropdown menu

b)

To define each selectable choice

c)

To validate user input

d)

To link to another webpage

14.

Which attribute is required to create a password input field?

a)

type="text"

b)

type="password"

c)

type="secure"

d)

type="hidden"

15.

What are two main tools for making HTML interactive?

a)

CSS and JavaScript

b)

HTML forms and JavaScript

c)

HTML forms and CSS

d)

JavaScript and PHP