NEW
Font size
WorksheetsAdding Interactive Elements in HTML
Total questions: 15
Worksheet time: 8mins
What is the HTML element used to create an interactive button?
<input type="button">
<button>
<div class="button">
<a href="button.html">
What can be placed inside a element to customize its content?
Only text
Text or images
Only images
None of the above
What is the purpose of the type attribute in an element?
Change the input's size
Specify the type of interaction for the input
Automatically apply CSS styles
It has no purpose
Which HTML tag is used to create a dropdown menu?
<dropdown>
<menu>
<select>
<input type="dropdown">
How is a dropdown menu structured in HTML?
Using and elements inside it.
Using and elements inside it.
Using and CSS classes for styling.
Using and to create options.
Which of the following is NOT a type of input element () in HTML?
Text (type="text")
Checkbox (type="checkbox")
Radio button (type="radio")
Selector (type="select")
Which tool allows you to send the values of inputs on an HTML page to another file or server?
JavaScript
HTML forms
CSS
None of the above
What is the primary use of JavaScript with interactive HTML elements?
Change the background color
Read input values and perform actions
Organize page content
Add external links
How is a checkbox defined in HTML?
<checkbox>
<input type="checkbox">
<input type="check">
<box>
What does the tag allow you to do in an HTML file?
Add interactive images
Group related inputs and send their data
Apply CSS styles to inputs
Navigate between different web pages
What type of input allows users to select only one option from a group?
<input type="checkbox">
<input type="radio">
<input type="text">
<input type="dropdown">
Which HTML element is used to group related inputs for submission?
<section>
<form>
<fieldset>
<group>
What is the purpose of the element in a dropdown?
To style the dropdown menu
To define each selectable choice
To validate user input
To link to another webpage
Which attribute is required to create a password input field?
type="text"
type="password"
type="secure"
type="hidden"
What are two main tools for making HTML interactive?
CSS and JavaScript
HTML forms and JavaScript
HTML forms and CSS
JavaScript and PHP
