0% found this document useful (0 votes)
25 views2 pages

Forms and Input Tags: HTML Lang Charset Name Content

This document contains an HTML form with various input fields for collecting user information such as name, role, email, date of birth, eligibility, gender, text area to write about yourself, and a select dropdown for car selection. The form allows submitting the collected data via a submit button and resetting via a reset button.

Uploaded by

Debabrata Saha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Forms and Input Tags: HTML Lang Charset Name Content

This document contains an HTML form with various input fields for collecting user information such as name, role, email, date of birth, eligibility, gender, text area to write about yourself, and a select dropdown for car selection. The form allows submitting the collected data via a submit button and resetting via a reset button.

Uploaded by

Debabrata Saha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>forms and input tags</title>
</head>
<body>
    <h2>This is form tutorial</h2>
    <form action="backend.php">
        <label for="name">Name</label>
        <br>
        <div>
           <input type="text" name="my name" id="name">
        </div>
        <br>
        <label for="role">Role</label>
        <div>
            <input type="text" name="my role" id="role">
        </div>
        <br>
        <label for="email">Email</label>
        <div>
             <input type="email" name="myEmail" id="email">
        </div>
        <br>
        <label for="date">date</label>
        <div>
            <input type="date" name="mydate" id="date">
            
        </div>
        <br>
        <label for="bonus">bonus</label>
        <div>
            <input type="number" name="mybonus" id="bonus">
            
        </div>
        <br>
        <label for="Are you eligible?">are you eligible?</label>
        <div>
            <input type="checkbox" name="myeligibility" id="Are you eligible?">
        </div>
        <br>
        
        
        <div>
            Gender: Male <input type="radio" name="mygender"> Female <input type
="radio" name="mygender">
        </div>
        <br>
        <label for="write about yourself"> write about yourself:</label>
        <div>
            <br><textarea name="" id="write about yourself" cols="30" rows="10">
</textarea>
        </div>
         <br>
        <div>
            <label for="car">my car</label>
            <select name="mycar" id="car">
                <option value="indica" selected>indica</option>
                <option value="swf">swift</option>
            </select>

        </div>
        <br>    
        </div>
            <input type="submit" value="submit now">
            <input type="reset" value="reset now">
        </div>
        
    </form>
    
    
</body>
</html>

You might also like