write a HTML program to create form

in this HTML tutorial we are create a web page to collect general information from a student which includes or display following fields: name of student , address , city , pin code, gender and hobbies and send response to server to accept all information.

code
<html>
<body>
    <form name="f1">
        name of student
        <input type="text" name="t1"><br><br>
        enter address
        <textarea name="add"></textarea><br><br>
        enter city
        <input type="text" name="t2"><br><br>
        enter pincode
        <input type="text" name="t3"><br><br>
        select gender
        <input type="radio" name="r1">male
        <input type="radio" name="r1">female<br><br>
        select hoddy
        <input type="checkbox" name="c1"> bike riding
        <input type="checkbox" name="c1"> swiming 
        <input type="checkbox" name="c1"> body building
        <input type="checkbox" name="c1"> trekking
        <input type="checkbox" name="c1"> out dower game<br>
        <input type="submit" name="b1" value="submit">
    </form>
</body>
</html>
output:-
write a HTML program to create form

Post a Comment

0 Comments