Forms & Inputs interview questions

24 real Forms & Inputs questions from the HTML bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is form element?

Junior
  1. A.the container that groups controls and submits their values to a server via an action and method
  2. B.the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  3. C.the boolean constraint that blocks form submission until the field has a value
  4. D.the slider control that lets a user pick a numeric value between a min and max by dragging
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.form element — the slider control that lets a user pick a numeric value between a min and max by dragging
  2. B.form element — the hint text shown inside an empty field that disappears once the user starts typing
  3. C.form element — the container that groups controls and submits their values to a server via an action and method
  4. D.form element — the field constraint holding a regular expression that the entered value must match to be valid
Reveal the answer + AI explanation — free account

4. What is label element?

Junior
  1. A.the container that groups controls and submits their values to a server via an action and method
  2. B.the control whose for attribute ties a caption to a field so clicking it focuses that field
  3. C.the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  4. D.the boolean constraint that blocks form submission until the field has a value
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.label element — the slider control that lets a user pick a numeric value between a min and max by dragging
  2. B.label element — the control whose for attribute ties a caption to a field so clicking it focuses that field
  3. C.label element — the field constraint holding a regular expression that the entered value must match to be valid
  4. D.label element — the hint text shown inside an empty field that disappears once the user starts typing
Reveal the answer + AI explanation — free account

7. What is input type email?

Junior
  1. A.the slider control that lets a user pick a numeric value between a min and max by dragging
  2. B.the hint text shown inside an empty field that disappears once the user starts typing
  3. C.the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  4. D.the boolean constraint that blocks form submission until the field has a value
Reveal the answer + AI explanation — free account

8. Which term means: "the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile"?

Junior
  1. A.input type email
  2. B.label element
  3. C.input type range
  4. D.placeholder attribute
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.input type email — the hint text shown inside an empty field that disappears once the user starts typing
  2. B.input type email — the field constraint holding a regular expression that the entered value must match to be valid
  3. C.input type email — the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  4. D.input type email — the container that groups controls and submits their values to a server via an action and method
Reveal the answer + AI explanation — free account

10. What is placeholder attribute?

Mid
  1. A.the slider control that lets a user pick a numeric value between a min and max by dragging
  2. B.the control whose for attribute ties a caption to a field so clicking it focuses that field
  3. C.the element that supplies a list of suggested options to an input while still allowing free text entry
  4. D.the hint text shown inside an empty field that disappears once the user starts typing
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.placeholder attribute — the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  2. B.placeholder attribute — the control whose for attribute ties a caption to a field so clicking it focuses that field
  3. C.placeholder attribute — the hint text shown inside an empty field that disappears once the user starts typing
  4. D.placeholder attribute — the boolean constraint that blocks form submission until the field has a value
Reveal the answer + AI explanation — free account

13. What is required attribute?

Mid
  1. A.the control whose for attribute ties a caption to a field so clicking it focuses that field
  2. B.the hint text shown inside an empty field that disappears once the user starts typing
  3. C.the element that supplies a list of suggested options to an input while still allowing free text entry
  4. D.the boolean constraint that blocks form submission until the field has a value
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.required attribute — the container that groups controls and submits their values to a server via an action and method
  2. B.required attribute — the boolean constraint that blocks form submission until the field has a value
  3. C.required attribute — the element that supplies a list of suggested options to an input while still allowing free text entry
  4. D.required attribute — the hint text shown inside an empty field that disappears once the user starts typing
Reveal the answer + AI explanation — free account

16. What is input type range?

Mid
  1. A.the slider control that lets a user pick a numeric value between a min and max by dragging
  2. B.the hint text shown inside an empty field that disappears once the user starts typing
  3. C.the boolean constraint that blocks form submission until the field has a value
  4. D.the control whose for attribute ties a caption to a field so clicking it focuses that field
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.input type range — the container that groups controls and submits their values to a server via an action and method
  2. B.input type range — the element that supplies a list of suggested options to an input while still allowing free text entry
  3. C.input type range — the boolean constraint that blocks form submission until the field has a value
  4. D.input type range — the slider control that lets a user pick a numeric value between a min and max by dragging
Reveal the answer + AI explanation — free account

19. What is pattern attribute?

Senior
  1. A.the container that groups controls and submits their values to a server via an action and method
  2. B.the field constraint holding a regular expression that the entered value must match to be valid
  3. C.the hint text shown inside an empty field that disappears once the user starts typing
  4. D.the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.pattern attribute — the field variant that validates entered text matches an email address pattern and shows an email keyboard on mobile
  2. B.pattern attribute — the boolean constraint that blocks form submission until the field has a value
  3. C.pattern attribute — the field constraint holding a regular expression that the entered value must match to be valid
  4. D.pattern attribute — the hint text shown inside an empty field that disappears once the user starts typing
Reveal the answer + AI explanation — free account

22. What is datalist element?

Senior
  1. A.the hint text shown inside an empty field that disappears once the user starts typing
  2. B.the field constraint holding a regular expression that the entered value must match to be valid
  3. C.the element that supplies a list of suggested options to an input while still allowing free text entry
  4. D.the slider control that lets a user pick a numeric value between a min and max by dragging
Reveal the answer + AI explanation — free account

23. Which term means: "the element that supplies a list of suggested options to an input while still allowing free text entry"?

Senior
  1. A.required attribute
  2. B.placeholder attribute
  3. C.datalist element
  4. D.input type email
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Senior
  1. A.datalist element — the element that supplies a list of suggested options to an input while still allowing free text entry
  2. B.datalist element — the boolean constraint that blocks form submission until the field has a value
  3. C.datalist element — the slider control that lets a user pick a numeric value between a min and max by dragging
  4. D.datalist element — the control whose for attribute ties a caption to a field so clicking it focuses that field
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Forms & Inputs free