HTML Forms

Free Web development courses with real-time projects Start Now!!

Program 1

<html>
    <body>
        <fieldset>
            <legend>SignUp</legend>
        <form action="http://www.google.com">

            <label>Name:</label>
            <input type="text" name="name" id="name" placeholder="Enter name" required>
            <br>
            <label>Password:</label>
            <input type="password" name="password" required>
            <br>
            <label>Gender:</label>
            Male:<input type="radio" name="gender" value="male">
            Female:<input type="radio" name="gender" value="female">
            <br>
            <label>Hobbies:</label>
            Drawing:<input type="checkbox" name="drawing">
            Singing:<input type="checkbox" name="singing">
            Playing:<input type="checkbox" name="playing">
            <br>
            <input type="number" name="num"><br>
            <input type="file" name="myfile">
            <br>
            <select name="cars" multiple>
                <option value="ford">Ford</option>
                <option value="maruti">Maruti</option>
                <option value="benz">Benz</option>
            </select>
            <br>
            <input type="date" name="bday"><br>
            <textarea rows="5" cols="30" placeholder="feedback.."></textarea>
            <input type="submit">
            <input type="reset">
         
        </form>
        </fieldset>
    </body>
</html>

 

Did we exceed your expectations?
If Yes, share your valuable feedback on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *