html input tags |
- Creates a single-line text input field where users can enter alphanumeric text.
- Example:
<input type="text" name="username">
Password Input:
<input type="password">
- Similar to a text input field, but obscures the entered characters to provide security for passwords.
- Example:
<input type="password" name="password">
Checkbox:
<input type="checkbox">
- Represents a checkbox that users can select or deselect independently.
- Example:
<input type="checkbox" name="agree" value="yes">
Radio Button:
<input type="radio">
- Represents a set of mutually exclusive options where users can select only one option.
- Example:-
- <input type="radio" name="color" value="red"> Red
- <input type="radio" name="color" value="green"> Green
- <input type="radio" name="color" value="blue"> Blue
- 5. Dropdown List: <select> with <option> elements
- Displays a list of options from which users can select one option.
- Submit Button: <input type="submit">
- Creates a button that submits the form data to the server for processing.
- Example: <input type="submit" value="Submit">
- Example:-
- <select name="country">
- <option value="usa">USA</option>
- <option value="uk">UK</option>
- <option value="canada">Canada</option>
- </select>
Comments
Post a Comment