It Programs
It Programs
<! DOCTYPE html> <html><head> <title>Example of HTML5 text formatting tags</title> </head><body>
<b>This text is bold</b><br><br> <i>This text is italic</i><br><br> <mark>This text is
marked</mark><br><br> This is <sub>subscript</sub> and <sup>superscript </sup><br><br> <ins>This
text is inserted to the document</ins><br><br> <del>This text is deleted from the
document</del><br><br> </body> </html>
2 PROGRAM -2 HEADINGS:2
<! DOCTYPE html> <html> <head> <title>Heading levels</title> </head> <body bgcolor=”skyblue”>
<H1>Heading level 1 Text is largest in size</H1> <H2>Heading level 2 </H2> <H3>Heading level 3</H3>
<H4>Heading level 4</H4> <H5>Heading level 5</H5> <H6>Heading level 6 Text is smallest in size</H6>
</body></html>
3 PROGRAM -3 ORDER LIST:3
<! DOCTYPE html><html><body> <h3>List of Topics in reverse sequence</h3> <ol reversed> <li>Basics
of IT</li><li>HTML 5</li><li>PostgreSQL</li></ol></body></html>
<!DOCTYPE html> <html> <head> <title>Table with 4 rows and 3 columns </title> </head> <body>
<table border=”2”> <tr><th>Sr. No.</th> <th>Input Device</th> <th>Output Device</th> </tr> <tr>
<td>1</td> <td>Keyboard</td> <td>Monitor</td> </tr> <tr> <td>2</td> <td>Mouse</td>
<td>Printer</td> </tr> <tr> <td>3</td> <td>Joystick</td> <td>Plotter</td> </tr> </table> </body>
</html>
<!DOCTYPE html> <html><head> <title>Table with 4 rows and 3 columns </title> </head> <body>
<table border=”1” BORDERCOLOR=”GREEN” CELLSPACING =”20” CELLPADDING=”30”> <tr><th>Sr.
No.</th> <th>Input Device</th> <th>Output Device</th> </tr> <tr> <td>1</td> <td>Keyboard</td>
<td>Monitor</td> </tr> <tr> <td>2</td> <td>Mouse</td> <td>Printer</td> </tr> <tr> <td>3</td>
<td>Joystick</td> <td>Plotter</td> </tr> </table> </body> </html>
10 TABLE PROGRAM 3 W/ COLOURS 10
<!DOCTYPE html> <html> <head><title> Table with rowspan attribute </title></head> <body> <table
border=”3BORDERCOLOR=”GREEN” CELLSPACING =”20” CELLPADDING=”30”> <tr><td rowspan=2>
Colors </td> <td bgcolor=red>Red</td></tr><tr> <td bgcolor=green>Green</td></tr> </table>
</body> </html
11 ROWSPAN:11
<!DOCTYPE html> <html> <head><title> Table with rowspan attribute </title> </head> <body>
<table border=”5” BORDERCOLOR=”BLUE” CELLPADDING=”30”> <tr><td rowspan=”2”>Colors </td>
<td bgcolor=red>Red</td></tr><tr> <td bgcolor=green>Green</td></tr> </table> </body> </html>
12 COLSPAN:12
<!DOCTYPE html> <html> <head><title> Table </title></head> <body> <table border =”3”
BORDERCOLOR=”BLUE” CELLPADDING=”30”> <tr><td colspan=”2” align=”center”> Colors </td></tr>
<tr><td bgcolor=red>Red</td> <td bgcolor=green>Green</td> </tr> </table> </body></html>
13 A b c d in table1
21 Name of Cricketers in unordered list(CORRECT ONE ASSIGNMENT) (I am proud of mah self hehe)
26 subscript example
27 Hyperlink example
<! DOCTYPE html><html><head><title>Hyperlink example</title></head><body><h1>Click the link <a
href="http://www.yahoo.com">www.yahoo.com</a></h1></body></html>
Program 2
Program 4
<TD>Mick<TD>Jagger</TR><TR BGCOLOR="YELLOW"><TD>Bill<TD>Wyman
<TR BGCOLOR="YELLOW"><TD>Brian<TD>Jones</TR></TABLE></BODY></HTML>
Different OL Types
Type Description
type="1" The list items will be numbered with
numbers (default)
type="A" The list items will be numbered with
uppercase letters
type="a" The list items will be numbered with
lowercase letters
type="I" The list items will be numbered with
uppercase roman numbers
type="i" The list items will be numbered with
lowercase roman numbers
FORMS PROGRAM 1
<!DOCTYPE HTML>
<HTML>
<head><title>Form with Input elements</title></head>
<body bgcolor="orange">
<h1>Use of form for personal information</h1>
<form method ="post" action ="Thankyou.html">
Enter your Name :<input type="text" Name="n1" maxlength="20"><Br><br>
Enter your Email address : <input type="text" Name="n2" maxlength="20"><Br><br>
Enter your Address : <Textarea name="TA1" rows="" cols=""> </Textarea><br><br>
Select your Country : <select>
<option value ="1"> India </Option>
<option value ="2"> USA </Option>
<option value ="3"> Uk </Option>
</Select><br><br>
Select your City : <select multiple size ="2">
<option value ="1"> Mumbai</Option>
<option value ="2"> Delhi</Option>
<option value ="3"> Goa</Option>
</Select><br><br>
Enter your standard : <input type ="radio" name="rb1" value="11">
11<sup>th</sup> <input type="radio" name="rb1" value="12">12<sup>th
</sup><br><br>
Choose your optional subjects : <br><br>
<input type="checkbox" name="c1" Value="Hindi">Hindi<br>
<input type="checkbox" name="c2" Value="German">German<br>
<input type="checkbox" name="c3" Value="Biology">Biology<br>
<input type="checkbox" name="c4" Value="IT">IT<br>
<input type="submit" value="Submit">
<input type ="Reset" value="Reset"><br>
</form></body></HTML>
FORMS PROGRAM 2
<!DOCTYPE html>
<html>
<head><title> Form elements and textarea </title></head>
<body bgcolor="cyan" text ="Red">
<h1> Use of form elements </h1>
<form method = "post" action = "data.php">
Enter your name: <input type = "text" name = "fn"> <br> Select your city :
<select name=''ct''>
<option>Pune</option>
<option>Nagpur</option>
<option>Solapur</option>
</select><br>
Enter your address: <textarea name = "address" rows = "3" cols = "30" placeholder = "your address"
required> </textarea> <br>
<input type = "submit" value = "send">
</form></body> </html>
Note : PHP is server side scripting language.In the above program 'data.php' is the name of PHP file
which stores the accepted data (from tb)
FORMS PROGRAM 4 -1
<!DOCTYTPE HTML><html><head><title>Program 1</title></head>
<body bgcolor="yellow"><h1 align="center"><u>REGISTRATION FORM</u></h1><br><br><form
align="center" method ="post" action ="thankyou.html">
NAME:<input type="text"name="tb1" placeholder="YOUR NAME"required><br><br>
GENDER: <input type="radio" name="rb1" value="Male" checked>MALE
<input type="radio" name="rb1" value="Female">FEMALE<br><br>
ADDRESS: <textarea cols="0" rows="0" placeholder="YOUR ADDRESS"required></textarea><br><br>
CITY: <select name="city" multiple size="3"> <option>MUMBAI</option>
<option>PUNE</option> <option>NAGPUR</option>
<option>AURANGABAD</option> <option>KOLHAPUR</option></select> <br><br>YOUR FIELD OF
INTEREST:<br>
<input type="checkbox"name="c1"value="READING"required> READING <br>
<input type="checkbox"name="c2"value="PAINTING"required>
PAINTING<br>
<input type="checkbox"name="c3"value="SINGING"required>
SINGING <br>
<input type="checkbox"name="c4"value="DANCING"required>
DANCING <br>
<input type="checkbox"name="c5"value="SPORTS"required>
SPORTS <br><br>
<input type="submit"name="s1"value="SUBMIT">
<input type="reset"name="rs1"value="RESET">
</form></body></html>
FORMS PROGRAM 9 -6
<!DOCTYPE HTML> <HTML><head><title>PROGRAM 6</title>
</head><body bgcolor="lavender"align="left"><h1><b><u>GENERAL
INFORMATION</u></b></h1><br><br><form name="f1" method="POST" action="Thank
You.html">NAME OF THE STUDENT:-<input type="text"name="t1"placeholder="FULL
NAME"required><br><br>ADDRESS:-<textarea name="ta1"rows="5"cols="30"placeholder="YOUR
ADDRESS"required></textarea><br><br>
PINCODE:-<input type="text"name="n1"placeholder="xxxxxx"maxlength="6"required>
<br><br>GENDER:-<input type="radio"name="r1"value="male">MALE
<input type="radio"name="r1"value="female">FEMALE<br><br>
HOBBIES:-<br>
<input type="checkbox"name="ch1"value="reading">READING<br>
<input type="checkbox"name="ch2"value="singing">SINGING<br>
<input type="checkbox"name="ch1"value="dancing">DANCING<br>
<input type="checkbox"name="ch1"value="painting">PAINTING<br>
<input type="checkbox"name="ch1"value="sports">SPORTS<br><br>
<input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET">
</form></body></html>
FORMS PROGRAM 10 -7
<!DOCTYPE HTML><html><head><title>Program 7</title></head>
<body bgcolor="Teal"align="center"><br><h1><u><i>REGISTRATION FORM</i></u></h1><br>
<form name="form"method="POST" action="Thankyou.html">
USERNAME:-<input type="text"name="t1"placeholder="ENTER YOUR NAME"required><br><br>
GENDER:-<input type="radio"name="r1"value="male">MALE
<input type="radio"name="r1"value="female">FEMALE<br><br>
ADDRESS:-<textarea name="ta1"row"6"cols="20"placeholder="YOUR ADDRESS"required>
</textarea><br><br
>HOBBIES:-<select name="s1">
<option>Singing</option>
<option>Dancing</option>
<option>Biking</option>
</select><br><br>
<input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET">
</form></body></HTML>
FORMS PROGRAM 11 -8
<!DOCTYPE HTML><html><head><title>Program 8</title></head>
<body align="center"bgcolor="Turquoise"><br><br>
<h1><u>FAMOUS CRICKETERS</u></h1><br><br><br>
<form method="POST">YOUR NAME:<input
type="text"name="t1"placeholder="NAME"required><br><br>
WHO IS YOUR FAVOURIE CRICKETER?
<select name="s1"><option>STEVE SMITH</option><option>VIRAT KOHLI</option>
<option>KANE WILLIAMSON</option><option>DAVID WARNER</option>
<option>BEN STOKES</option></select><br><br><input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET">
</form></body></HTML>
FORMS PROGRAM 12 -9
<!DOCTYPE HTML><html><head><title>Program 9</title></head>
<body bgcolor="lavender" align="left">
<h1><u>REGISTRATION FORM</u></h1><br><br>
<form method="POST">USERNAME:<input type="text"name="t1"placeholder="YOUR
NAME"required><br><br>GENDER:<input type="radio"name="r1"value="male">MALE
<input type="radio"name="r1"value="female">FEMALE
<br><br>AGE:<input type="number"placeholder="YOUR AGE"required><br><br>
HOBBIES:<br><input type="checkbox"name="c1"
value="singing">SINGING<br><input type="checkbox"name="c2"
value="dancing">DANCING<br><input type="checkbox"name="c3"
value="reading">READING<br><input type="checkbox"name="c4"
value="swimming">SWIMMING<br><input type="checkbox"name="c5"
value="biking">BIKING<br><br><input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET"></form></body></html>
</head><body align="left"bgcolor="Grey">
<h1>SELECT YOUR FAVORITE SUBJECT</h1><br>
<input type="checkbox"name="c1"value="IT">Information Technology<br>
<input type="radio"name="rb1"value="Maths">Maths<br>
<input type="checkbox"name="c3"value="Accounts">Book-Keeping And Accountancy<br>
<input type="checkbox"name="c4"value="Eco">Economics<br>
<input type="checkbox"name="c6"value="OCM">Organisation of Commerce and Management<br>
<input type="checkbox"name="c7"value="Eng">English
<br>
<input type="radio"name="rb1"value="SP">SP<br><br>
<input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET">
</form></body></HTML>
FORMS PROGRAM 16 -13
<!DOCTYPE HTML><html><head><title>Program 17</title></head>
<body bgcolor="aqua" align="left"><h1><b>STUDENT LOG IN</b></h1><br><br>
<form name="form"method="POST">
Student Name:<input type="text"name="t1"placeholder="YOUR FULL NAME"required><br><br>
Date of Admission:<input type="date"placeholder="DD/MM/YYYY"required><br><br>
Course:<select><option>BBA</option><option>BCA</option>
<option>BBM</option></select><br><br>
<input type="submit"name="su1"value="SUBMIT">
<input type="reset"name="re1"value="RESET">
</form></body></html>
FORMS PROGRAM 16 -13
<!DOCTYPE HTML><html><head><title>Program 18</title></head>
<body bgcolor="Lightgreen" align="center"><form method="POST">
<h1><b>FORM</b></h1><br><br>NAME:<input type="text"name="t1"placeholder="YOUR
NAME"required><br><br>DATE:<input type="date"name="date"required><br><br>
TIME:<input type="time"name="time"required><br><br>
<input type="submit"name="su1"value="SUBMIT"><input type="reset"name="re1"value="RESET">
</form></body></html>