How can you create a range slider in an HTML form to select values within a specified range?
a) <input type="range">
b) <input type="slider">
c) <input type="scrollbar">
d) <input type="number">
Explanation: You can create a range slider in an HTML form to select values within a specified range using the <input type="range"> tag.
Which attribute is used to set the default value of a text input in an HTML form?
a) default
b) initial
c) value
d) preset
Explanation: The "value" attribute is used to set the default value of a text input in an HTML form, which is displayed in the input field when the form is loaded.
To group related radio button controls together, which attribute should be used?
a) group
b) radio-group
c) set
d) name
Explanation: To group related radio button controls together, the "name" attribute should be used. Radio buttons with the same "name" attribute will be treated as a single group, and only one option can be selected within that group.
Which type of control is used to capture numeric input in a form?
a) <input type="number">
b) <input type="text">
c) <input type="numeric">
d) <input type="integer">
Explanation: The <input type="number"> control is used to capture numeric input in a form, restricting the user to enter only numeric values.
How can you add a submit button to an HTML form to send the form data to the server?
a) <button type="submit">
b) <input type="button">
c) <input type="submit">
d) <button type="send">
Explanation: You can add a submit button to an HTML form to send the form data to the server using the <input type="submit"> tag.
Formatting Controls on Form: