No announcement

Input Type

The type attribute of the <input> element specifies the type of input to be collected. It determines the format and behavior of the input field.



<!DOCTYPE html>
    <meta charset="UTF-8">
    <title>Input Types Example</title>
        <input type="text" placeholder="Text Input">
        <input type="email" placeholder="Email Input">
        <input type="number" placeholder="Number Input">
        <input type="password" placeholder="Password Input">
        <input type="checkbox" id="check">
        <label for="check">Checkbox Input</label>
        <input type="radio" id="radio">
        <label for="radio">Radio Input</label>
        <input type="submit" value="Submit">
        <input type="reset" value="Reset">


In this example, various input types are used, including text, email, number, password, checkbox, radio, submit, and reset.