nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/Input and Forms

How users send data to your app: form elements, input types, labels and built-in validation.

14 QuestionsIntermediateHigh Priority ~14 min read

The <form> element groups controls and defines how their data is submitted through the action and method attributes. Inside it, input comes in many types (text, email, number, password, checkbox, radio, date, file and more), alongside select, textarea and button. Each control needs a name attribute to be included in submitted data, and radio buttons share a name to form a group. Pairing every control with a <label> (via for and id, or by wrapping) enlarges the click target and makes the field accessible.

HTML5 added built-in validation through attributes like required, pattern, min, max, minlength and maxlength, plus the autocomplete attribute and input types that trigger the right mobile keyboard. Interviewers like to ask the difference between GET and POST, why client-side validation never replaces server-side validation, and what the difference is between a button of type submit, button and reset. Forgetting that a button inside a form defaults to type submit is a common source of accidental page reloads.

What you'll walk away knowing

How form, action and method work, and the difference between GET and POST
Common input types and why choosing the right one improves usability and validation
Why labels are essential for accessibility and how to associate them with controls
Built-in validation attributes and why server-side validation is still mandatory
1What are fieldsets and legends in forms?Intermediate2What is the placeholder attribute?Beginner3What does the pattern attribute do?Intermediate4How can you capture file uploads with HTML?Beginner5How do you make an input field required?Beginner6What is native form validation in HTML?Intermediate7What is the role of the <label> tag in forms ?Intermediate8Explain method="GET" vs method="POST" in forms ?Beginner9What are different form elements in HTML ?Beginner10What does name attribute do in an input field ?Beginner11How to restrict a field to accept only numbers?Beginner12What is the purpose of action in form?Beginner13How do you build a multi-step form with native HTML?Intermediate14What is the difference between disabled and readonly?Beginner15What is the use of autocomplete?Intermediate16How do you limit input length in a form?Beginner17How do you associate multiple labels with one input?Beginner
All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.