HTML Forms
Full Stack 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>
We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google

