2. Write down the html program.
Use of form element
Enter your name
Enter your class
Select your city
Enter your address
Submit
Answers
Answered by
0
Answer:
<html>
<body>
<h1>The form element</h1>
<form action="/action_page.php">
<label for="fname">Enter your name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Enter your class:</label>
<input type="text" id="lname" name="lname"><br><br>
<label for="cityname">Enter your city:</label>
<input type="text" id="cityname" name="cityname"><br><br>
<label for="lname">Enter your Address:</label>
<input type="text" id="add" name="add"><br><br>
<input type="submit" value="Submit">
</form>
<p>Click the "Submit" button and the form-data will be sent to a page on the
server called "action_page.php".</p>
</body>
</html>
Explanation:
try it and make changes as you require
Similar questions
English,
3 months ago
English,
3 months ago
Computer Science,
6 months ago
Social Sciences,
6 months ago
Chemistry,
11 months ago