HTML Body: Forms & Input Tags in HTML

 



<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> forms </title>
</head>

<body>
    <h2>This is HTML Forms Tutorial</h2>
    <form action="backend.php">
        <label for="name">Name</label>
        <div>
            <input type="text" name="myname" id="name">
        </div>
        <br>
        <label for="role">role</label>
        <div>
            <input type="text" name="my role" id="role">
        </div>
        <br>
        <label for="email">Email</label>
        <div>
            <input type="email" name="My Email" id="email">
        </div>
        <br>
        <div>
            choose your schooling:<select name="schooling">
                <option value="Jac">Jac Board</option>
                <option value="CBSC">CBSE Board</option>
            </select>
        </div>
        <br>
        <label for="date">Date</label>
        <div>
            <input type="date" name="Date" id="date">
        </div>
        <br>
        <div>
            Gender: Male<input type="radio" name="my gender"> Female <input type="radio" name="my gender">
        </div>
        <br>
        <label for="describe">Discribe your self </label>
        <div>
            <br> <textarea name="txt" id="describe" cols="30" rows="10"></textarea>
        </div>
        <br>
        <label for="bonus">Bonus</label>
        <div>
            <input type="number" name="my numbers" id="bonus">
        </div>
        <br>
        <div>
            <br>
            <label for="t&c">Do you read our Terms & Conditions</label>
            <div>
                <input type="checkbox" name="T&C" id="t&c">
                <!-- use checked for by default tick -->
            </div>
            <input type="submit" value="submit now">
            <input type="reset" value="reset">
        </div>
</body>

</html>