HTML



Admission Enquiry Form

  

HTML Form Tag


Form is a document which is used to take information from the user.

Code of Form Tag

<!DOCTYPE html>
<html lang="en">
<head>
   <title>Document</title>
</head>
<body>
    <form>
        <fieldset>
            <legend align="center">Student Information</legend>
       <p> <label>Enter name: </label><input type="text" placeholder="enter name" id="txt_name" name="txt_name" required></p>
        <p><label>Enter password: </label><input type="password" placeholder="Enter password" id="txt_pass" name="txt_pass" required></p>
        <p><label>Enter email: </label><input type="email" placeholder="Enter Email" id="txt_email" name="txt_email"></p>
        <p><label>Enter Age:</label><input type="number" placeholder="Enter Age" id="txt_age"></p>
        <p><label>Enter Date Of Joining: </label><input type="date"></p>
        <h2>Select Course:</h2>
        <input type="checkbox" name="chk1" value="html">HTML
        <input type="checkbox" name="chk2" value="css">CSS
        <input type="checkbox" name="chk3" value="js">Java Script<br>
      <p>  <h2>Select Gender:</h2>
        <input type="radio" name="rd1">Male
        <input type="radio" name="rd1">Female<br>
    </p><p>
    <h2>Upload Image:</h2>
    <input type="file" name="file1"></p>
    <h2>Select Day</h2>
<select name="days">
    <option value="sun">Sunday</option>
<option value="mon">Monday</option>
<option value="tue">Tuesday</option>
<option value="wed">Wednesday</option>
<option value="thu">Thursday</option>
<option value="fri">Friay</option>
<option value="sat">Saturday</option>
</select><br>

<p><textarea placeholder="comment here!" rows="6" cols="15"></textarea></p>
       <br> <input type="button" value="click">
        <input type="submit" value="save">
        <input type="reset">
    </fieldset>
    </form>
</body>
</html>