HTML
HTML
OF
HTML
Output:
Output:
Output:
Q.6 Write a program to implement font tag in html.
<html>
<head>
<title>font</title>
<body bgcolor=pink>
<h1><font color=orange font size=8 font
face=ravie>Internet</font></h1>
<font color=blue font size=5 font face=ravie>
internet is the coined by two word inter and net. inter menans
interconnection ans net means
network. internet is a network of networks and
html is stands for hyper text markup language.html is the language used
for creating web pages.
it provides a number of commands that can be used to place and format
text picture and sound on
web pages. these commands are known as tags or markup.
</body>
</html>
Output:
Q.7 Write a program to insert image in html.
<html>
<head>
<title>img</title>
</head>
<body>
<img src="C:\Users\Public\Pictures\Sample Pictures/koala.jpg"></img>
</body>
</html>
Output:
Q.8 Write a program to create order list in html.
<html>
<head>
<title>ordered list</title>
</head>
<body>
<h1><center>Input device</center></h1>
<ol type=1>
<li>Mouse
<li>Keyboard
<li>Joystick
<li>Lightpen
<li>Scanner</li></ol>
<h2><center>Output device</center></h2>
<ol type=A>
<li>Monitor
<li>Speaker
<li>Printer
<li>Dot matrix printer
<li>Laser printer</li></ol>
</body> </html>
Output:
Output:
Output:
Q.11 Write a program to create unordered list in html.
<html>
<head>
<title>unordered list</title>
</head>
<body>
<h1><center>Input device</center></h1>
<ul type=circle>
<li>Mouse
<li>Keyboard
<li>Joystick
<li>Lightpen
<li>Scanner</li></ol>
<h2><center>Output device</center></h2>
<ul type=disc>
<li>Monitor
<li>Speaker
<li>Printer
<li>Laser printer
<li>Dot matrix printer</li></ol>
</body>
</html>
Output:
Q.12 Write a program to create a table in html.
<html>
<head>
<title>table</title>
</head>
<body>
<table table border=10 height=200 width=50%>
<caption><b><i>bsc(final year class list)<i></font></b></caption>
<tr align=center>
<th>rollno</th>
<th>name</th>
<th>class</th>
<th>address</th>
<th>ph.no.</th>
</tr>
<tr align=center>
<td>1</td>
<td>pinki</td>
<td>bsc(c.s.)</td>
<td>hodal</td>
<td>1234567890</td>
</tr>
<tr align=center>
<td>2</td>
<td>pooja rani</td>
<td>bsc(c.s.)</td>
<td>palwal</td>
<td>345678312</td>
</tr>
<tr align=center>
<td>3</td>
<td>neha kaushik</td>
<td>bsc(c.s.)</td>
<td>fbd</td>
<td>347657890</td>
</tr>
<tr align=center>
<td>4</td>
<td>kumkum kaushik</td>
<td>bsc(c.s.)</td>
<td>kosi</td>
<td>456783920</td>
</tr>
<tr align=center>
<td>5</td>
<td>vansita</td>
<td>bsc(c.s.)</td>
<td>hodal</td>
<td>56745342514</td>
</tr>
</table>
</body>
</html>
Output:
Output:
Output:
Q.21 Write a program to create a drop down list by using
html.
<html>
<head>
<title>form</title>
</head>
<body>
<form>
<b>NAME<input type="text" name="text1" size=30><br><br>
FATHER'S NAME<input type="text" name="text2"
size=30><BR><BR>
ADDRESS<input type="text" name="text4" size=30><BR><BR>
PHONE NO<input type="text" name="text5" size=30><BR><BR>
PASSWORD<input type="password" name="p1"
size=30><br><br>
COURSE AVAILABLE:<br><br>
BSC<input type="RADIO" name=R1 >
BCA<input type="RADIO" name=R1 >
BBA<input type="RADIO" name=R1 >
MSC<input type="RADIO" name=R1 >
MBA<input type="RADIO" name=R1 >
MCA<input type="RADIO" name=R1 ><br><br>
SUBJECT OBTAIN:<br><br>
ENGLISH<input type="CHECKBOX" name=c1>
HINDI<input type="CHECKBOX" name=c2>
MATH<input type="CHECKBOX" name=c3>
COMPUTER<input type="CHECKBOX" name=c4><br><br>
SELECT QUALIFICATION:<BR><BR>
<select name="qual">
<option value="10th">10th
<option value="12th">12th
<option value="bsc">B.sc
<option value="B.com">B.com
</select></b>
</form>
</body>
</html>
Output:
Q.22 Write a program to create Admission form in html.
<html>
<head>
<title>form</title>
</head>
<body>
<center><b><i><font size=8>ADMISSION
FORM</font></b></i></center>
<form>
<b>NAME<input type="text" name="text1" size=30>
FATHER'S NAME<input type="text" name="text2"
size=30><BR><BR>
CITY<input type="text" name="text3" size=30>
ADDRESS<input type="text" name="text4" size=30><BR><BR>
PHONE NO<input type="text" name="text5" size=30>
PASSWORD<input type="password" name="p1"
size=30><br><br>
E-MAIL ID<input type="TEXT" name="p1" size=30><br><br>
DATE OF BIRTH<input type="TEXT" name="p1"
size=30><br><br>
SELECT COURSE:<br><br>
<SELECT NAME="AUAL">
<OPTION VALUE="SELECT">SELECT
<OPTION VALUE="B.SC">B.SC
<OPTION VALUE="B.SC">B.COM
<OPTION VALUE="B.SC">BBA
<OPTION VALUE="B.SC">BCA
<OPTION VALUE="B.SC">MBA
<OPTION VALUE="B.SC">M.SC
<OPTION VALUE="B.SC">MCA
</SELECT><BR><BR>
GENDER:
MALE<input type="RADIO" NAME="R1">
FEMALE<input type="RADIO" NAME="R1"><BR><BR>
NATIONALITY:
INDIAN<INPUT TYPE="RADIO"NAME="R2">
OTHERS<input type="RADIO" NAME="R2"><BR><BR>
SUBJECT OBTAIN:<br><br>
ENGLISH<input type="CHECKBOX" name=c1>
HINDI<input type="CHECKBOX" name=c2>
MATH<input type="CHECKBOX" name=c3>
COMPUTER<input type="CHECKBOX" name=c4>
<BR><BR>
<center>
<INPUT TYPE="SUBMIT" VALUE="SUBMIT">
<INPUT TYPE="RESET" VALUE="RESET"></center></B>
</form>
</body>
</html>
Output:
Q.23 Write a program to create inline style sheet in css.
<html>
<head>
<title>demo of inline sheet</title>
</head>
<body>
<p style="color:red; font-size:25px;"> shivank goel</p>
</body>
</html>
Output:
Q.24 Write a program to create external sheet by using CSS.
*/html file*/
<html>
<head>
<link rel="stylesheet" type="text/css" href="external.css">
</head>
<body>
<p>External stylesheet
-in this method we create seprate css file along with html file .</p>
</body>
</html>
*/CSS file/*
p{
color: red;
font-size: 25px;
}
Output:
Q.25 Write a program to implement internal sheet by using
CSS.
<html>
<head>
<title>CSS</title>
<style>
P
{
color:red; font-size:50px;
}
</style>
</head>
<body>
<h1><center>INTERNAL LINKING</h1></center>
<p>css stands for cascading style sheet</p>
<p>it is used to providing more customized web pages</p>
<p>almost all web brower support css</p>
</body>
</html>
Output: