Forms & Inputs interview questions

24 Forms & Inputs questions from the HTML bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice Forms & Inputs free

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

Answer + AI explanation with a free account

2. Which term means: "the container that groups controls and submits their values to a server via an action and method"?

Junior
  1. A.pattern attribute
  2. B.required attribute
  3. C.form element
  4. D.input type range

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

5. Which term means: "the control whose for attribute ties a caption to a field so clicking it focuses that field"?

Junior
  1. A.placeholder attribute
  2. B.form element
  3. C.input type email
  4. D.label element

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

11. Which term means: "the hint text shown inside an empty field that disappears once the user starts typing"?

Mid
  1. A.placeholder attribute
  2. B.form element
  3. C.input type range
  4. D.input type email

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

14. Which term means: "the boolean constraint that blocks form submission until the field has a value"?

Mid
  1. A.datalist element
  2. B.required attribute
  3. C.pattern attribute
  4. D.input type email

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

17. Which term means: "the slider control that lets a user pick a numeric value between a min and max by dragging"?

Mid
  1. A.pattern attribute
  2. B.datalist element
  3. C.label element
  4. D.input type range

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

20. Which term means: "the field constraint holding a regular expression that the entered value must match to be valid"?

Senior
  1. A.input type range
  2. B.placeholder attribute
  3. C.label element
  4. D.pattern attribute

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice Forms & Inputs free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers