How to Create Simple HTML form and database

-:HTML FORM :-

HTML :- Hypertext Markup Language. Html Invented in the year of 1980 by Tim Berners-Lee.

Tim Berners-Lee :- He is Physicist, Contractor at CERN.

Simple HTML :- 
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


 Outpur:- 

This is a Heading

This is a paragraph.
                
HTML FORM :- 

<html>


<title>STUDENT REGISTRATION FORM</title>
<body>

<form>

<fieldset>


<legend>STUDENT REGISTRATION FORM</legend>
<table border=5 bgcolor="gray">
<tr>
<td>Student id</td>
<td><input name="Student id" id="Student id"></td>
</tr>
<tr>
<td>Student Name</td>
<td><input name="Student Name" id="Student Name"></td>
</tr>
<tr>
<td>Course</td>
<td><input name="Course" id="Course"></td>
</tr>
<tr>
<td>Gender</td>
<td>
<input type="radio" name="Gender" value="Male" checked> Male
<input type="radio" name="Gender" value="Female"> Female
</td>
</tr>
<tr>
<td>Date of Birth</td>
<td>
<select name="Date of Birth" id="Date of Birth">
<option value="-1">Date</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="4">22</option>
<option value="4">23</option>
<option value="4">24</option>
<option value="4">25</option>
<option value="4">26</option>
<option value="4">27</option>
<option value="4">28</option>
<option value="4">29</option>
<option value="4">30</option>
<option value="4">31</option>
</select>
<select name="Month" id="Month">
<option value="-1">Month</option>
<option value="January">Jan</option>
<option value="February">Feb</option>
<option value="March">Mar</option>
<option value="April">Apr</option>
<option value="May">May</option>
<option value="June">Jun</option>
<option value="July">Jul</option>
<option value="August">Aug</option>
<option value="September">Sep</option>
<option value="October">Oct</option>
<option value="November">Nov</option>
<option value="December">Dec</option>
</select>

<select name="Year" id="Year">
<option value="-1">Year</option>
<option value="2012">2019</option>
<option value="2012">2018</option>
<option value="2012">2017</option>
<option value="2012">2016</option>
<option value="2012">2015</option>
<option value="2012">2014</option>
<option value="2012">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
</select>
</select>
</td>
</tr>
<tr>
<td>Category</td>
<td>
<input type="radio" name="Category" value="Gen"> Gen
<input type="radio" name="Category" value="OBC"> OBC
<input type="radio" name="Category" value="SC"> SC
<input type="radio" name="Category" value="ST"> ST
</td>
</tr>
<tr>
<td>Address
<td><textarea name="Address" rows="4" cols="30"></textarea></td>
</tr>
<tr>
<td>E-Mail</td>
<td><input name="E-Mail" id="E-Mail"></td>
</tr>
<td>Contect</td>
<td><input name="Contect" id="Contect"></td>
</tr>
<tr>
<td>State</td>
<td>
<select name="State" id="State">
<option value="Select">Select</option>
<option value="Delhi">Delhi</option>
<option value="Gujarat">Gujarat</option>
<option value="Mumbai">Mumbai</option>
<option value="Jammu & Kashmir">Jammu & Kashmir</option>
<option value="Punjab">Punjab</option>
</td>
</tr>
<tr>
<td>Country</td>
<td><input name="Country" id="Country"></td>
</tr>

<tr>
<td colspan="2" align="center">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</tr>


<table>
</fieldset>
</form>
</body>
</html>


Thank you for reading my post if you have any query then write your query in comment section.

Post a Comment

0 Comments