Q1. What are the different input types in HTML?
Common types: text, password, email, number, tel, url, checkbox, radio, file, date, color, range, submit, reset, button.
Q2. What is the difference between radio and checkbox?
Radio buttons allow single selection from a group (same name). Checkboxes allow multiple selections.
Q3. What does the placeholder attribute do?
Placeholder shows hint text in the field that disappears when typing, helping users understand expected input.
Q4. What is the value attribute used for?
Value sets the initial/default value of the input field, which appears pre-filled.
Q5. How do you create a file upload input?
Use <input type="file"> and set form enctype="multipart/form-data" for file uploads.
