HTML FORMS

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <H1>Forms in HTML</H1>
    <form action="/submit.php">
<div>
 <label for="Name">Name</label>
 <input type="text" placeholder="Enter name">
</div>
<div>
    <label for="Phone">Phone</label>
    <input type="tel" placeholder="Enter phone no.">
   </div>
   <div>
    <label for="Email">Email</label>
    <input type="email" placeholder="Email">
   </div>
   <div>
    <label for="Password">Password</label>
    <input type="text" placeholder="Password">
   </div>
   <div>
    <label for="Date">Date</label>
    <input type="date" placeholder="Enter name">
   </div>
   <div>
    <label for="Gender">Gender</label>
    <select id="Gender" required>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="Rather not Say">Rather not say</option>

</div>
<div>
    </form>
</body>
</html>

Comments

Popular posts from this blog

FORM STYLING IN CSS