Home / Programs / Write HTML code for the following Form with post method
Programming Example

Write HTML code for the following Form with post method binary tree

👁 1,565 Views
💻 Practical Program
📘 Step by Step Learning
This is an example of HTML forms

Program Code

<form method="post">
    First name: <input type = "text" name = "first_name" > <br><br>
    Second name: <input type = "text" name = "second_name" ><br><br>
	Age: <input type = "text" name = "age" ><br><br>
	
	Gender:  <input type = "radio" name = "gender" id = "male" value = "male">Male  
  <input type = "radio" name = "gender" id = "Female" value = "Female">Female  <br><br>
  
<p>Province:</p>

<select name="selDays" multiple="multiple"> 
	<option value="Punjab" > Punjab </option >
	<option value="Balochistan" > Balochistan </option >
	<option value="KPK" > KPK </option >
	<option value="Sindh" > Sindh </option > 
</select >

</form>

Output

<h4>Live Preview </h4>
<div class="box effect2">
<img src="http://www.atnyla.com/library/images-tutorials/html-browser.png" class="img-responsive">
<div class="embed-responsive embed-responsive-16by9">
    <iframe class="embed-responsive-item" src="http://www.atnyla.com/library/html/references/forms/html-form-question-2.html"></iframe>
  </div>
</div>

Explanation

None

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.