About Lesson
Input Types
HTML provides a wide range of input types, each tailored to gather specific types of data. Some common input types include:
- Text Input: <input type=”text”>
- (Used for single-line text input, such as names, email addresses, or search queries.)
- Password Input: <input type=”password”>
- Conceals the input characters, typically used for sensitive information like passwords.
- Checkbox: <input type=”checkbox”>
- Allows users to select one or more options from a list of choices.
- Radio Button: <input type=”radio”>
- Enables users to choose only one option from a list of mutually exclusive choices.
- Dropdown Menu: <select>
- Presents a list of options in a dropdown menu, allowing users to select one.
- File Input: <input type=”file”>
- Enables users to upload files from their local system.
- Submit Button: <input type=”submit”>
- Submits the form data to the server for processing.
Join the conversation