IT Practical
IT Practical
CERTIFICATE
______________________________________________________________
Date :
A form generated with controls like text, radio button, textarea and submit button.
. Program code:
<html>
<head>
<title>
</head>
</body>
' </html>
rylwsse?s47
<html>
<head>
<title>
Harikisan Maloo lnstitute of Management & Technology</title>
</head>
<body bgcolor="aqua">
<h1 align="center"> subject in 12th lT</h1>
<ol type="A">
<li> c</li>
<li> Operating system</li>
<li> HTML</li>
<li> C++</li>
</ol>
<a h ref="f iI e :/ // D : I expt1,/i mges/i ma ge3.j pg" width=" 150"/>
<a h ref="f iI e :/ II D: / exptt/th i rd. ht m l" >Thi rd Page </a> <br><b r>
</body>
</html>
. <html>
<head>
<title>
Harikisan Maloo lnstitute of Management & Technology</title>
</hea d>
<body bgcolor="green">
<h1- align ="center> Student Registration form</h1>
<form name="f1''>
Enter Name<input type="text" name="t1"/><br><br>
Enter Password<input type="password" name="t2"><br><br>
Enier Add ress<texta rea name="t3" rows-" 10"></texta rea><bp<br>
select Gendercinput type="radio" name="11">Male<br><br>
<input type=" radio" name="12">Female<br><br>
<input type="submit" name="b1" value ="Submit">
<input type="reset" name="b2">
<fform>
<a h ref="f iI e :I I I D : / expt1,1se co nd. htm l " >secon d pa ge</a ><b r>< br>
</body>
</html>
$s@t
Output:
${&,rbb.h,n*r,, -;{{*;riiW.;:iitiii&#{.ffirHiirii,ii;!;ti:i*tifr#ii*,.,.. * --.o,-:,}^ ,::. .,"
.:: i.#.*
$r**x**
Practical No.2
Aim: create a website using frame with given layout select
appropriate theme like(college, profite, company profite and
environment etc.) and create page as follows.
o The web page is divided into 3 different frame left, right and bottom.
o The left and right session have hyperlink each hyperlink on clicking display data in
bottom frame of the web page . The bottom most session changes the content
dynamically. Create internal CSS for hyperlink files with three properties.
Program Code:
Cssl.html
<html>
<head>
</title>
<style>
</style>
</head>
<body>
<b>Web Designing</b>
</body>
</html>
ry+Fry
Css2.html
<html>
<head>
<title>
lnformation TechnologY</title>
<style>
bocJy{backgrau nd-color:aqua}
em{word sPacing:25Pt}
</head>
<body>
<srong>lT lab</strong><br><br>
<e m>gymkghana</em><br><br>
</body>
</html>
Linkl.html
<html>
<body>
<center>
</body>
</html>
Link2.htmt
<html>
<body>
<center>
<a ref=" Desktop\css1. html" ta rget=',f3,'>HyperLink2</a>
</center>
</body>
</html>
Frame.html
<html>
<frameset rows"*,*,,)
<frameset cols"*,*")
<fra me src="C:\Users\exam\Desktop\link1.
html,, na me=,,f1,,>
<fra me src="C:\Users\exam\Desktop\link2.
html,, name=,,f2,,>
</frameset>
<frame src="" name="f3,'>
</frameset>
</html>
Output:
., ;:;;;";;";;;\iii]-::.i,iTH:Ns, _: ::d,Aid*ti&
ik, r,'d2ut .Lra hrnt..b..hr6r
f g
=
fnformotion Techno
Web Designing
Hrplirk I
H)?aLi,k:
Practical No. 3
Aim: Create a web page which gives Hyperlink on a web page using Client side
image Mapping.
Program Code:
<html>
<head>
<title>
</head>
<body>
</map>
</body>
</html>
Output:
Program Code:
<html>
<head>
<title>
server side image mapping</title>
</head>
<body>
<h 1- align="cente r">server side i mage ma pping</h 1>
<a h ref=" http://serverna me/html/expt3/i nfo. ma p">
<img src="C:\Users\Public\Pictures\SamplePictures\Desert.jpg"usemdp="flower" width="400">
' <img src="Desktop\Tulips.jpeg"usemap="flower" width="400">
<la>
- </body>
</html>
€ffFr?--:iGq,
Output:
Progream Code:
Withcontrols. html
<html>
<head>
<title> Audio & Animation with controls</title>
</head>
<body>
<h1 align="center">Audio & Animation with controls</h1>
<e m bed sr c=" file: / / / D :/expt5/i mages/k. m p3" loop=" 5",
. <h3> Animation image</h3>
<img src="file://lD:lexplS/images/im11.gif" width="L00" height="L00" alt="Digital">
. </body>
</html>
Withoutcontrols.html
<html>
<head>
<title> Audio & Animation without controls</title>
</head>
<body>
<h1 align="center">Audio & Animation without controls</h1>
<bgso un d sr c=" file:/ / I D:/exptS/ima ges/k. m p3" loop=" 5",
<img src="file,/llD:/explS/images/img3.gif" width="100" height="1-00" alt="bird">
</body>
</html>
Output:
*/;i;;;;;;";"*;;";;;- ",-ffi[}9[ffitr$1ffi&{ffiffi#. Wiii**:ll iriLt[&,,*iffi$.&i[i$iEipi;ffi*
---"*"*^' irtitr:,WW
.,,.
'urb *-J-* o o ="
ll,udio & l{,nitmation t.ith cerntr-ols
A<[alloE ail*ge
{r6 ,$ *ry9
Practical No. 6
Aim: a webpage that plays a video infinite number of timeswith controls.The
Create
displayed video should have dimensions2O0 * 150 pixels. The video must playing on user's
interaction . Create another web page that plays a video without controls for some specific
number of times. The dimension of video file should be 150*200 pixels.The video should play
when the mouse is placed over the video area.
Program Code:
Videowithcontrol. htm I
<html>
<head>
<title> video with controls</title>
</head>
<body>
<h1 align="center"> video with controls</h1>
<e m bed sr c=" file / / /
: D :/expt6/vi d eo/k.wmv" loop=" - 1" wi dt h=" 200" hei ght=" 1- 50" >
</body>
</html>
Videowithoutcontrol. html
<html>
<head>
<title> video without controls</title>
</head>
<body>
<h1 align="center"> video without controls</h1>
<img dynsrc ="file:l llD:lexpt6/videc/k1.avi" loop="4" width="200" height="1-50" Start="mouseover"/>
</body>
</html>
Output:
,9 dx ! * a &
ffi
\ idtr, $ itlr rantrrls
Irfi * * s
=
yidco rvithout contrrls
l:l:u.
Practical No.7
Aim: ceate a web page using HTML code that contains at least four major
.
differences related to marquee attributes, Light and Dark border cotors
of
Tables, Display of Broken lmages with its attributes, Disptay of Blink text
and
Backgraund sound.
Program Code:
<html>
<head>
<title>Cross border testing</title>
</head>
<body bgcolor="aqua">
<h1 align="center">lnformation Technology</h1>
<m a rq u ee d i re cti o n = " rig ht,' >S u bj ects</m a rq uee>
<hr color="red">
<blink> blink</blink>
<hr color="red">
' <bgsound src="">
<table border=,,6,, bordercolo16lg;.ft=,'gl.ggll,,bordercolorlight=,,yellow,,cellpadding=,,2g,,,
<t r>
<th>
chapter no.</th>
<th>marks</th>
<ltr>
<tr>
<td>1</td>
<td> web publication</td>
<td>30</td>
<ltr>
<tr> '
<td>2</td>
<td>crTber lows<r/td>
<td>09</td>
<ltr>
<tr>
<td>3</td>
<td>e commerce</td> -
<td>10</td>
<ltr>
<tr>
. <td>4</td>
<td>networking</td>
<td>12</td>
<ltr>
<tr>
<td>5</td>
<td>data base</td>
<td>1,9</td>
</tr><tr>
<td>6</td>
<td>tally</td>
<td>22</td>
<llr>
</table>
</body>
</html>
Output:
Program Code:
<html>
<head>
<title>>POprrlation in lndia</title>
</head>
<body>
<h1 align="center">Population in lndia</h1>
<h1- align="center">Population in lndia</h1>
<ce nte r>
<h2>
U-(9-u1q7 1..l 2, </c en te r>
q-+nT 3{rf, 6l gA* 6t ua riefi:{ sffqT t t w-gfr:it-r q-qt-qpT fr nmt fi frr T6 sil-tr ftiar 6r Fasq '
d;I rl-ql t t gE-fir qt-d rt ara-q-s{Er{I fi a-€i, str{a ilq-T-{-dT'q 3rT ;rrr t uq-h $qsrT-{ qrii 3fi-{
r
M. G H ltr{sq 6l arkm'3{Qt t riauft r 16 rrcrfr Gf 6-nrt qRi 3ir{ Si{ rT-5 t 3ilr ffir frlqd
e
fi q"m h eafr FznS H rS u-qy"T 6-il aiirr t r u-ryq +) frI dk w fi-f, *mr C fuerm l+-qr ar
q-+?r t-aTg n(qrr, Tf, q={sur rlk taB u-qrur I q a;fi €r u-fiR fi u-qyu ar+q *'FqrFz?T h fr1,
FIG-+TIzF R.qd G Hr
Output:
::\ ) 11,.: :' :\. . /
Population in India
Populrrtion in Inclia
?q5q * fis fJ ro o*iti v,.iq I I q6ia -}ii crtw . tFrl + ftr 16 qt fu,{ { fu-ry F ffi t
& r
Practical No.09
Aim: Create ASP.NET web application using Visual Basic .Net to disptay a report
of client !P address, browser etc.
Program Code:
End Sub
Output:
,'(i-'{/z/2/.7,/z/l)
WW.31:i:Z
Practical No.10
Aim: Create ASP.NET web application using Visual Basic .Net to display server
side time among with client side script to display client side time.
Program Code:
End Class
Output:
Practical No.11
Aim: Create ASP.NET web application using Visua! Basic .Net to calculate
number of days a person has lived on basis of the date of birth.
Program Code:
TextBox2.Text = Date.Now.Date
datel = Convert.ToDateTime(TextBoxl.Text)
TextBox3.Text = DateDiff(Dat':Irrterval.Day, date1, Now.Date)
End Sub
End Class
Output:
ffiif Form!.
Date of Birth is
I oday date ls
Lr lltLVll
Program Code:
Imponts System.I0
Public Class *e.tt',ztui1.
End Sub
,i :i tr,..tf*1.31i1.r.. x
r u .,
Y(FrQ, tAriar-D<v88,
T:l/H,G7iriU!:r,g 5.
i, ri'"
Inn'
5r,t ati 1'*i ilttll, a; ',1' .1. !tr"nR"d4 i'oi / Dt.i,r
Practical No. L3(a)
Aim: Create ASP.NET web apptication using Visuat Basic .Net to disptay hit
counter.
Program Code:
Output:
l
l
l
I
L_...,*,,.==... . .
Practical No.13(b)
Aim: Create ASP.NET web application using Visual Basic .Net to display number
of votes cast.
Program Code:
End If
Labe]1.Text = Session("yes")
End Sub
End Class
Output:
subnrit I
Practical No.15
Aim : Creation of data base a nd ASP. N ET code that allows a user to view releva nt information from the
same.
Creation of MSDatabase:-
1,. Click on start -> Programs -> Microsoft Office -> MS ACCESS 2007.
2. Click on Office button -> New -> Blank Database -> specify location were to save file -> Create.
3. Right click on table -> click on design view -> give table name.
4. Add following fields in it.
Empno Number
Empname Text
Address Text
Contactno Text
Salary Number
Connecting MSDatabase:
L. Click on website -> Add new item, given the program name.
2. ln solution Explorer window -> App_data -> Add Existing ltem -> select employee database.
3. From toolbox -> Data Controls -> AccessData Source.
4, ln AccessData Source-> configure Datasource -> Browse -> select Employee Database -> Next ->
Next Finish.
5, From toolbox -> Data controls -> GridView
6, Right click on GridView-> properties-> DatasourcelD -> select AccessDataSourcel.
7. Press f5 to run program.
Practical No.16
Aim: Use of database and ASP.NET code that allows a user to view as well as
edit information
Program Code:
Imports System. Data.OleDb
Imports System.Data
Public Class 0e fault
GridViewl . DataBind o
End Sub
End 5ub
End Class
Output:
ryrer€r:ry
{
docu ment.bgcolor=" blue";
wi ndow.setTimeout("f10",t2OO);
function msg0
{
window.status="display of 7 distinct colors";
)
</script>
<body>
<body bgcolor="aqua">
<center>
<input type="button" name="b1" value="colors on MouseOver="f10"><p>
<input type="button" name="b2" val ue="message" onClick="msg0"></body></html>
Output:
, ii) filet,r,r.iC;,rUEerslqam.lDesktopl'l7,himt
Program Code:
<html>
<head>
<title>
Validation of pincode and salary </title>
<scri pt la nguage="Javascript">
function pinsal0
t
var a,b,alen,x,y,dp;
a=f1.t1.va lue;
b=f1.t2.value;
alen=a.length;
x=0;y=0;
if(alen<6 | lalen>10)
{
alert("pincode min 6 max 10 digits");
f1.tl-.va lue=" ";
f1.t1".focus0;
x++;
if(isNaN(a))
{
alert("pincode only digit");
f1.tl-.value=" ";
f1.t1.focus0;
X++;
)
if(isNaN(b) | lb<0)
i
alert("salary ivalid value please reenter");
f 1.tl-.va lu e =" ";
f1.t1.focus0;
y++;
)
=Fsaire?..jry
dp=b.indexOf(". ");
if(d p>-0 && d p<b.lensth-3
{
alert("salary ivalid vaIue please reenter");
f1.t1.va lue=" ";
f1.t1.focus0;
y++;
)
if(x<1 && y<1)
{
alert(" both accepta ble");
)
)
</scri pt>
</h ea d>
<body bgcolor="aqua" text=" red">
<hr> enter pincode and salary<br>
<form name="f1">
Enter pincode: <input type="text" name="t1"><br>
Enter salary: <input type="text" name="t2"><br>
<i nput type=" button" value="validate" onClick="pinsal0">
<fform>
</body>
</html>
Output:
onadiaiiu i
",
?a.-.:ffi
}\-% l8__ F1p16,ffi
Program Code:
<html>
<head>
<title>Validation of username and password</title>
</head>
<script language="javascri pt">
functron user0
t
',/a r a,b,alen,blen,x,y,p,ch;
a=f 1.t1.va lue;
b=f1.t2.value;
a len=a.length;
ble n= b.le ngt h;
x=o;y=o;
if(alen<61 lalen>10)
t
alert("username not acceptable:min 6 max 10 chars");
x++;
)
if(blen<6 | | blen>12)
{
alert("password not accepable: min 6 max 12 chars");
y++;
)
if(b.indexOf(" ")>=0)
{
alert("password:no blank space");
Y++;
)
for(P=g'Pqr 1e n; P++)
{
ch=a. ch a rAt( a );
if((ch<"a" | | CH>""2)&&(ch<"A" | | ch>"2")&&(ch<O | |ch>"9")
{
alert("username not acceptable: only alphabates and digits");
x++;
' P=alen;
)
i)
if(x>0&&y>0)
alert("both valid");
if(p0)
alert(" password i nvalid");
if(x>0)
alert("username invalid");
if(x==0&&Y==Q)
alert(" both invalid");
)
</scri pt>
<body bgcolor="aq ua" text=" red">
<hr>enter username & passwordcbr>
<form name="f1''>
username:<input type="text" name="t1"><br>
password:<input type="password" name="t2"><br>
' <inputtype="button" value="validation" onClick="user0">
" </form>
</body>
</html>
Output:
, r:t: ii--"::
useryiatlle:
pass\i'01'tr
l .,..
i ,
ivalloatl0n
i-"*-,-**1 ,:: rl-
i
'': -::$l:
i
t:::' ,:: . ::::, : irl ai: ! - r':t i:: .:.
:
I
,l
;
(..i
. d iI
ttt l
..
a
Output:
Dt*-l'alidz*.i^
l;'
: iiria"at-'':.::., :, :t:,r::.::. i
l. ,-) rt-, "t::. ::
! 1r
! .. I :t il
t.
i.. ,
: ...-
.' ,..,.
. ...
t: i ".-r.
I.-, .: .r -:...
'',: E
l
i
;' | :l': \i:. r::.::,' lt:'j?; a.::,.'' ::u':,:
i
!
a
Practical No.20(bl
!f
,
Aim: Use of Javascript for Validation of E-mail Adress.
Program Code:
<html>
<head>
<title>
validation of email address</title>
<script language "Javascript">
function email0
i
var x = foi'm1.em.value;
var atpos = x.indexOf("@");
var lastat = x.lastlnciexOf("@");
var firstdot = x.indexOf(".");
var dotpos = x.jlastlndexOf(.);
a
if(atpos< | | dotpos<atpos+2>=x.length | | firstdot<atpos | | atposclastat)
{
' alert("not a valid e-mail address")
forml.em.focus;
)
else
{
alert("Email address is accsepted");
return true;
)
)
</script>
</head>
<body bgcolor="aqua" text=" red">
<form name= "forml"onSubmit=email0 method="post">
Validation:<input type= "text" name="em">
<input type= "submit" value= "validation">
</form>
</body>
</html>
a
+effir€
Output:
r
a
7:r1:?.t:4.::::!-:1"...,1:!:.i:y;,|:i;1ra::::1ir;,wi.==::/::":-t--1.t:.:.--..17:a::1t111ri--=::-::::T:----.
, - -,tj"l ": I jj'
;" ..-i;
:. ' f' .
::: .'.\: "':
av
":, - ,r
. ': :
-".l}-il
-,1-. ---l:-
:
-, a
,i :: :t
';:{:
:t'vi
';:{:
::: :: ::t :::::