html input type list web design input tag

HTML Input Type List

HTML Input Types and Examples

Type Example Result
button Button
checkbox Checkbox
color Color Picker
date mm/dd/yyyy
datetime Datetime
datetime-local Datetime-Local
email Email
file No file chosen
hidden Hidden
image Image (Submit)
number Number
password Password
radio Radio
range Range
reset Reset
search Search
submit Submit
tel Telephone
text Text
time hh:mm
url URL
week Week
html input type list web design input tag;
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Input Type List</title>
</head>
<body>
    <h1>HTML Input Types and Examples</h1>

    <table>
        <tr>
            <th>Type</th>
            <th>Example</th>
            <th>Result</th>
        </tr>
        <tr>
            <td>button</td>
            <td><input type="button"></td>
            <td>Button</td>
        </tr>
        <tr>
            <td>checkbox</td>
            <td><input type="checkbox"></td>
            <td>Checkbox</td>
        </tr>
        <tr>
            <td>color</td>
            <td><input type="color"></td>
            <td>Color Picker</td>
        </tr>
        <tr>
            <td>date</td>
            <td><input type="date"></td>
            <td>mm/dd/yyyy</td>
        </tr>
        <tr>
            <td>datetime</td>
            <td><input type="datetime"></td>
            <td>Datetime</td>
        </tr>
        <tr>
            <td>datetime-local</td>
            <td><input type="datetime-local"></td>
            <td>Datetime-Local</td>
        </tr>
        <tr>
            <td>email</td>
            <td><input type="email"></td>
            <td>Email</td>
        </tr>
        <tr>
            <td>file</td>
            <td><input type="file"></td>
            <td>No file chosen</td>
        </tr>
        <tr>
            <td>hidden</td>
            <td><input type="hidden"></td>
            <td>Hidden</td>
        </tr>
        <tr>
            <td>image</td>
            <td><input type="image"></td>
            <td>Image (Submit)</td>
        </tr>
        <tr>
            <td>number</td>
            <td><input type="number"></td>
            <td>Number</td>
        </tr>
        <tr>
            <td>password</td>
            <td><input type="password"></td>
            <td>Password</td>
        </tr>
        <tr>
            <td>radio</td>
            <td><input type="radio"></td>
            <td>Radio</td>
        </tr>
        <tr>
            <td>range</td>
            <td><input type="range"></td>
            <td>Range</td>
        </tr>
        <tr>
            <td>reset</td>
            <td><input type="reset"></td>
            <td>Reset</td>
        </tr>
        <tr>
            <td>search</td>
            <td><input type="search"></td>
            <td>Search</td>
        </tr>
        <tr>
            <td>submit</td>
            <td><input type="submit"></td>
            <td>Submit</td>
        </tr>
        <tr>
            <td>tel</td>
            <td><input type="tel"></td>
            <td>Telephone</td>
        </tr>
        <tr>
            <td>text</td>
            <td><input type="text"></td>
            <td>Text</td>
        </tr>
        <tr>
            <td>time</td>
            <td><input type="time"></td>
            <td>hh:mm</td>
        </tr>
        <tr>
            <td>url</td>
            <td><input type="url"></td>
            <td>URL</td>
        </tr>
        <tr>
            <td>week</td>
            <td><input type="week"></td>
            <td>Week</td>
        </tr>
    </table>
</body>
</html>
I've organized the information into a table for a clearer presentation. I've also added headings and titles for better context and improved readability. The comments regarding each input type have been expanded to provide more detail about what each type does.
Next Post Previous Post
No Comment
Add Comment
comment url