Forwarded from CS_24_MCQ
Which attribute is used to hide an input field from the user?
Anonymous Quiz
33%
hidden
7%
disable
1%
readonly
58%
type="hidden"
Forwarded from CS_24_MCQ
Which attribute allows users to select multiple options in a <select> element?
Anonymous Quiz
52%
multiple
29%
multiselect
6%
size
14%
allow-multiple
Forwarded from CS_24_MCQ
How do you create a dropdown menu in a form?
Anonymous Quiz
31%
<input type="dropdown">
21%
<input type="select">
39%
<select>
9%
<menu>
Forwarded from CS_24_MCQ
Which input type allows users to select a file for upload?
Anonymous Quiz
59%
<input type="file">
3%
<input type="image">
31%
<input type="upload">
6%
<input type="button">
Forwarded from CS_24_MCQ
How do you create a radio button group in HTML?
Anonymous Quiz
20%
By giving each radio button a different name
22%
By using the <select> tag
46%
By giving multiple radio buttons the same name
12%
By setting the type to "radio-group"
Forwarded from CS_24_MCQ
What input type allows users to select multiple options using checkboxes?
Anonymous Quiz
3%
<input type="radio">
9%
<input type="select">
7%
<input type="button">
81%
<input type="checkbox">
Forwarded from CS_24_MCQ
Which attribute is used to specify the width of a text input field in characters?
Anonymous Quiz
42%
width
15%
size
39%
maxlength
4%
cols
Forwarded from CS_24_MCQ
What is the purpose of the <textarea> element in a form?
Anonymous Quiz
76%
To create a multi-line text input
11%
To create a single-line text input
3%
To create a password field
11%
To create a dropdown menu
Forwarded from CS_24_MCQ
How do you create a submit button in a form?
Anonymous Quiz
21%
<input type="button" value="Submit">
10%
<button type="button">Submit</button>
54%
<input type="submit" value="Submit">
15%
<button type="submit">Submit</button>
Forwarded from CS_24_MCQ
Which attribute specifies the maximum number of characters a user can enter in a text field?
Anonymous Quiz
10%
size
79%
maxlength
6%
minlength
4%
limit
Forwarded from CS_24_MCQ
How do you create a password input field in a form?
Anonymous Quiz
91%
<input type="password">
3%
<input type="secret">
6%
<input type="text">
0%
<input type="hidden">
Forwarded from CS_24_MCQ
Which HTML tag is used to create a text input field?
Anonymous Quiz
15%
<textarea>
6%
<input type="password">
1%
<input type="button">
78%
<input type="text">
Forwarded from CS_24_MCQ
Which method sends form data as part of the HTTP request body?
Anonymous Quiz
43%
GET
6%
PUT
48%
POST
3%
DELETE
Forwarded from CS_24_MCQ
Forwarded from CS_24_MCQ
When should the POST method be used for submitting form data?
Anonymous Quiz
13%
When sending small amounts of data
70%
When sending sensitive or large amounts of data
14%
When no server modification is required
3%
When submitting search queries
Forwarded from CS_24_MCQ
What is the default method used to submit form data in HTML?
Anonymous Quiz
16%
POST
7%
PUT
58%
GET
19%
SEND
Forwarded from CS_24_MCQ
What is the role of the ACTION attribute in a form?
Anonymous Quiz
18%
Specifies how the form data will be encoded
26%
Specifies the method used to submit the form data
54%
Specifies the URL where form data will be submitted
1%
Specifies the type of input fields in the form
Forwarded from CS_24_MCQ
Which of the following attributes is required for the <form> tag?
Anonymous Quiz
8%
src
13%
id
6%
href
72%
action
Forwarded from CS_24_MCQ
What is the correct syntax for creating an HTML form?
Anonymous Quiz
76%
<form>...</form>
15%
<form elements="..."></form>
7%
<input form="..."/>
2%
<form controls="..."/>
Forwarded from CS_24_MCQ
What is the main purpose of an HTML form?
Anonymous Quiz
9%
To style web pages
9%
To display images and videos
6%
To create navigation menus
76%
To collect user input and send it to the server
Forwarded from CS_24_MCQ
What does the target attribute in a form specify?
Anonymous Quiz
6%
The file format for the form data
69%
The window or frame in which to display the response after submitting the form
5%
The encryption type for the form data
21%
The HTTP method to use (GET or POST)