html input tags |


HTML Input 



text Input: <input type="text">

    • Creates a single-line text input field where users can enter alphanumeric text.
    • Example: <input type="text" name="username">
  1. 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">
  2. Checkbox: <input type="checkbox">

    • Represents a checkbox that users can select or deselect independently.
    • Example: <input type="checkbox" name="agree" value="yes">
  3. 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

Popular posts from this blog

html audio tag | audio in html | how to add audio in html #html #htmlcss