What is the correct HTML for making a checkbox?


Correct Option: A

AI Explanation

To answer this question, you need to understand the HTML syntax for creating a checkbox.

Let's go through each option to understand why it is correct or incorrect:

Option A) - This option is correct because the element is used to create various form controls, including checkboxes. The type="checkbox" attribute specifies that the input should be rendered as a checkbox.

Option B) - This option is incorrect because there is no HTML element called. To create a checkbox, you need to use the `element with thetype="checkbox"` attribute.

Option C) `- This option is incorrect because thetype` attribute for checkboxes should be set to "checkbox", not "check".

Option D) - This option is incorrect because there is no HTML element called. To create a checkbox, you need to use the `element with thetype="checkbox"` attribute.

The correct answer is Option A) ``. This option is correct because it uses the correct HTML syntax to create a checkbox.

Find more quizzes: