Forms and input tags.

<!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 Form Tutorial </h2>
    <form action="backend.php">
        <div>
            <label for="name">Name</label>
            <input type="text" name="myName" id="name">
        </div>
        <br>
        <div>
            Password : <input type="text" name="myPassword">
        </div>
        <br>
        <div>
            Email : <input type="email" name="myEmail">
        </div>
        <br>
        <div>
            Bonus : <input type="number" name="myBonus">
        </div>
        <br>
        <div>
            <label for="Are You Eligible">Are You Eligible </label>
            <input type="checkbox" name="myCheckbox" id="Are You Eligible">
        </div>
        <br>
        <div>
            Date : <input type="date" name="myDate">
        </div>
        <br>
        <div>
            Gender : Male <input type="radio" name="myGender"> Female<input type="radio" name="myGender">
            Other : <input type="radio" name="myGender">
        </div>
        <br>
        <div>
            Write aboute yourself : <br> <textarea name="myText" id="" cols="90" rows="10"></textarea>
        </div>
        <br>
        <div>
            <br>
            <div>
                <label for="Country">Country</label>
                <select name="myCountry" id="Country">
                    <option value="ind">India</option>
                    <option value="aus">Australia</option>
                    <option value="usa">United State America</option>
                    <option value="sa">Saudi Arebia</option>
                    <option value="sl">Shree Lnaka</option>
                </select>
            </div>
            <br>
            <input type="submit" value="Submit Now">
            <input type="reset" value="Reset Now">
        </div>
    </form>
</body>

</html>

Comments

Popular Posts