0% found this document useful (0 votes)
2 views

HTML PROGRAMS

Uploaded by

PAVAN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HTML PROGRAMS

Uploaded by

PAVAN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

HTML PROGRAMS

PROGRAM 1: Write a HTML program to create time table.


<html>
<head>
<title>time table </title>
</head>
<body bgcolor="PINK">
<center>
<h1> TIME TABLE </h1>
<table border="1" bgcolor="yellow">
<tr>
<th>DAY / TIME</th>
<th>8:10-9:00</th>
<th>9:00-9:50</th>
<th>9:50-10:40</th>
<th>10:40-11:30</th>
</tr>
<tr>
<th>MONDAY</th>
<td>L1</td>
<td>Physics</td>
<td>Chemstry</td>
<td>Maths</td>
</tr>
<tr>
<th>TUESDAY</th>
<td>L2</td>
<td>CS</td>
<td>Maths</td>
<td>Chemistry</td>
</tr>
<tr>
<th>WEDNESDAY</th>
<td>Physics</td>
<td>Maths</td>
<td>Chemistry</td>
<td>CS</td>
</tr>
<tr>
<th>THURSDAY</th>
<td>L1</td>
<td>Physics</td>
<td>CS</td>
<td>Maths</td>
</tr>
<tr>
<th>FRIDAY</th>
<td>L2</td>
<td>Chemistry</td>
<td>Maths</td>
<td>Physics</td>
</tr>

<tr>
<th>SATURDAY</th>
<td>CS</td>
<td>Physics</td>
<td>Chemistry</td>
<td>Maths</td>
</tr>
</table>
</center>
</body>
</html>
OUTPUT
PROGRAM 2: Write a HTML program to create form.
FORM 1:
<html>
<head>
<title> application form</title>
</head>
<body bgcolor="pink">
<form name="aplication" method="post" action="form2.htm">
<center>
<h1>APPLICATION FORM</h1>
NAME: <input type="text" name="stdname"> <br> <br>
FATHER NAME: <input type="text" name="fathername"> <br> <br>
MOTHER NAME: <input type="text" name="mother name"> <br> <br>
DATE OF BIRTH: <input type="text" name="dob"> <br> <br>
GENDER: <input type="radio" name="gen" value="male"> MALE
<input type="radio" name="gen" value="female"> FEMALE <br> <br>
ADDRESS: <textarea name="address"> </textarea> <br>
NATIONALITY: <select> <option> INDIA </option>
<option> USA </option>
<option> CHINA </option>
<option> JAPAN </option>
</select> <br><br>
HOBBIES: <input type="checkbox" name="ckbox" value="painting"> PAINTING
<input type="checkbox" name="ckbox" value="singing"> SINGING
<input type="checkbox" name="ckbox" value="dancing"> DANCING
<input type="checkbox" name="ckbox" value="reading"> READING
<input type="checkbox" name="ckbox" value="writing"> WRITING
<input type="checkbox" name="ckbox" value="playing">PLAYING <br> <br>
CONTACT NUMBER: <input type="text" name="cno"> <br> <br>
E_MAIL ID: <input type="text" name="eid"> <br> <br><br>
<input type="submit" value="SUBMIT">
<input type="reset" value="CLEAR">
</form>
</body>
</html>

FORM 2:
<html>
<head>
<title> form2 </title>
</head>
<body>
<h2>successfully created </h2>
</body>
</html>
OUTPUT
FORM 1:

If you click on SUBMIT button form2 will be displayed

You might also like