Search Header Logo

PT - II Grade X Revision HTML Forms

Authored by Shiva Kumar

Computers

10th Grade

Used 2+ times

PT - II Grade X Revision HTML Forms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You open a website and see a section asking for your name, email, and a message with a “Send” button at the bottom.

Based on this scenario:

  • What HTML element might have been used to collect and send this information?

<div>

<form>

<section>

<table>

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You are designing a contact form where users must enter their name, email, and phone number.
Each field should allow the user to type their answer in a single line.

Which HTML tag would you use repeatedly for these fields, and how would you customize it to collect different types of information?

<textarea>

<input>

<label>

<select>

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A developer creates a form with radio buttons for selecting gender. However, when the user clicks on the label text, the radio button doesn't get selected. Which of the following is the most likely reason?

The <label> tag is missing the for attribute that matches the id of the input.

The radio button is missing the name attribute.

The input type is set to text instead of radio.

The <label> tag is placed inside the <form> tag, which is incorrect.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You are designing a form where a user must select their favourite programming languages from a drop-down list. The user should be able to choose more than one option, and 3 options should be visible at once. Also, "Python" should be selected by default.

Which of the following best matches your requirement?

<select>

<option>Python</option>

<option>Java</option>

<option>C++</option>

<option>JavaScript</option>

</select>

<select size="3" multiple>

<option selected>Python</option>

<option>Java</option>

<option>C++</option>

<option>JavaScript</option>

</select>

<select multiple>

<option>Python</option>

<option>Java</option>

<option>C++</option>

<option>JavaScript</option>

</select>

<select size="3">

<option selected>Python</option>

<option>Java</option>

<option>C++</option>

<option>JavaScript</option>

</select>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes what happens when you increase the rows and cols attributes in a <textarea> element?

The text area allows more characters to be typed, but only the first line is visible.

The size of the text area increases visually, showing more lines and a wider typing area.

The text area becomes a read-only field with more padding.

The text area starts behaving like a dropdown list with multiple options.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A student creates the following HTML code:

<button>Click Me</button>

After running it, the button appears — but clicking it doesn't perform any action.
What is the most likely reason?

The <button> tag is incorrectly used — it must be inside a <form>

The <button> tag is used only in JavaScript, not in HTML

The <button> creates a clickable button, but it needs an event or form to define its action

The browser doesn't support the <button> tag

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are designing a user registration form with separate sections for Personal Details and Login Information. Which combination of HTML tags would help visually group these sections with appropriate headings, without using CSS styles or tables?

Use multiple <form> tags inside one form

Use <div> for sections and <h2> for headings

Use <fieldset> to group inputs and <legend> for section titles

Use <section> with <caption> to label each part

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?