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.

Example:

input_type.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Input Types Example</title>
</head>
<body>
    <form>
        <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">
    </form>
</body>
</html>


Output

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