Registration form

 <!DOCTYPE html><html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Student Registration Form</title></head>

<body><h2>Student Registration Form</h2>


<form action="submit_form.html" method="post">

    <label for="name">Full Name:</label>

    <input type="text" id="name" name="name" required>


    <label for="email">Email:</label>

    <input type="email" id="email" name="email" required>


    <label for="phone">Phone Number:</label>

    <input type="tel" id="phone" name="phone" required>


    <label for="dob">Date of Birth:</label>

    <input type="date" id="dob" name="dob" required>


    <label for="gender">Gender:</label>

    <select id="gender" name="gender" required>

        <option value="">Select</option>

        <option value="Male">Male</option>

        <option value="Female">Female</option>

        <option value="Other">Other</option>

    </select>


    <label for="course">Course:</label>

    <select id="course" name="course" required>

        <option value="">Select</option>

        <option value="Computer Science">Computer Science</option>

        <option value="Mathematics">Mathematics</option>

        <option value="Physics">Physics</option>

        <option value="Biology">Biology</option>

    </select>


    <label for="address">Address:</label>

    <input type="text" id="address" name="address" required>


    <input type="submit" value="Register">

</form>


</body>

</html>

Comments

Popular posts from this blog

Calculate Factorial using While loop in JavaScript.

Calculator

Simple calculator