Professional Documents
Culture Documents
OBJECTIVE
COURSE OUTCOME
PREREQUISITES
HARDWARE & SOFTWARE REQUIREMENTS
Hardware Requirements:
Pentium Dual Core @ 2.70 Ghz and above with 2GB RAM
160 GB HARD Disk
Monitor 1024* 768 color
Optical Mouse & Keyboard
Software and Pre require knowledge
Software Requirements:
Windows Operating System
Notepad++ / Sublime Text 3 (Text Editors)
HTML Validator
Mozilla Firefox / Google Chrome (Browser)
MANUAL FOR PROGRAMS
PROGRAM 1
Design Simple Web Pages using standard HTML tags like, HEAD, TITLE, and BODY
1. AIM:
To Develop a Simple Web Page that displays details of any four of your friends using HEAD,
TITLE and BODY. Each of your friend’s names must appear as hot text. When you click your
friend’s name, it must open another html document, which tells about your friend.
2. TEST CASE
TC_01 HTML Tag <Html> ----------------- Every html document contain It is used to Same as Success
</html> s opening and closing tag of represent your html E.O
html page in web
browser.
TC_02 HEAD Tag <Head>----------------- It can define title , style sheet , It is used to specify Same as Success
-</Head> script language for the html Title tag for the E.O
page page.
TC_03 Title Tag <Title> Title Text It specify the Title heading It accepts the title Same as Success
Name </Title> will appears at the browser’s text in the browsers E.O
title bar page
TC_04 Body Tag <Body> --------------- Body tag defines the actual It displays the html Same as Success
</Body> content to be presents in the document in the E.O
web page browser window
TC_05 Heading Tag <h1> Text Name It represents the text with bold It has higher Same as Success
</h1> ,size and face style priority for E.O
displaying the text
TC_06 Back ground <body bgcolor = It represents the background It displays the Same as Success
color “red”> color of the web page background in red E.O
included in <body> tag color
TC_07 Font color <font color = It defines the color of the text It displays the text Same as Success
“yellow”> in varying color in yellow color E.O
TC_08 Line Breaking <br> It breaks the current line and It allows the text to Same as Success
moves the cursor to the new enter in new line E.O
line
TC_09 Namespace It gives the space between the It makes the gap Same as Success
text between the text E.O
TC_10 Hyperlink <a href = It links the other html We can set the Same as Success
“targetfilename.html> document. hyperlinks to the E.O
Textname </a> text.
3. SOURCE CODE:
3.1. MAIN PAGE
<HTML>
<HEAD>
<HTML>
<HEAD>
<TITLE>ANITHA </TITLE>
</HEAD>
<BODY BGCOLOR = YELLOW>
He is so honest and sincere in his work.Now he is lecturer
in Technical Department
<BR><BR><BR><BR><BR><BR><BR><BR><BR>
<A HREF = "FRIENDS.HTML"><B> MAIN PAGE </B></A>
</FONT>
</BODY>
</HTML>
3.3. TSP.HTML Page
<HTML>
<HEAD>
<TITLE> VEENA </TITLE>
</HEAD>
<BODY BGCOLOR = YELLOW>
4. OUTPUT:
Thus we developed a HTML document which displays Friends name and their details using
HEAD, TITLE and BODY tags.
---------------------------------------------------------------------------------------------------------------------
PROGRAM 2
Design HTML web pages, which make use of INPUT, META, SCRIPT, FORM, APPLET,
BGSOUND, MAP
1. AIM:
To Develop a Simple Web Page that includes INPUT, META, SCRIPT, FORM, APPLET,
BGSOUND and MAP.
2. TEST CASE
TC_01 HTML Tag <Html> ----------------- Every html document contain It is used to Same as Success
</html> s opening and closing tag of represent your html E.O
html page in web
browser.
TC_02 HEAD Tag <Head>----------------- It can define title , style sheet , It is used to specify Same as Success
-</Head> script language for the html Title tag for the E.O
page page.
TC_03 Title Tag <Title> Title Text It specify the Title heading It accepts the title Same as Success
Name </Title> will appears at the browser’s text in the browsers E.O
title bar page
TC_04 Body Tag <Body> --------------- Body tag defines the actual It displays the html Same as Success
</Body> content to be presents in the document in the E.O
web page browser window
TC_05 Heading Tag <h1> Text Name It represents the text with bold It has higher Same as Success
</h1> ,size and face style priority for E.O
displaying the text
TC_06 Back ground <body bgcolor = It represents the background It displays the Same as Success
color “red”> color of the web page background in red E.O
included in <body> tag color
TC_07 Applet Tag <applet code = It was used to embed the Java It displays the text Same as Success
“mal.class”> applet in an HTML document. given in applet E.O
TC_08 Input Tag <input type="submit" The <input> tag specifies an It allows an input Same as Success
value="Submit"> input field where the user can field E.O
enter data.
TC_09 META tag <meta charset="UTF- The <meta> tag provides Metadata will not Same as Success
8"> metadata about the HTML be displayed on the E.O
document page, but will be
machine parsable.
TC_10 SCRIPT tag <script> The <script> tag is used to We can set the Same as Success
------</script> define a client-side script hyper links to the E.O
text.
TC_11 BGSOUND tag <bgsound>…</ <bgsound> tag is used to We can embed the Same as Success
bgsound> embed sound files into a web sound files E.O
page
TC_12 MAP tag <MAP>…</MAP> The <map> tag is used to An image-map is Same as Success
define a client-side image- an image with E.O
map clickable areas.
3. SOURCE CODE:
<HTML>
<HEAD>
<TITLE>HTML BGSOUND TAG</TITLE>
<META NAME="DESCRIPTION" CONTENT="LAB PROGRAM - 2" />
<META NAME="KEYWORD"
CONTENT="2,HTML,MAP,APPLET,BGSOUND,META,INPUT,FORM,SCRIP
T" />
<META NAME="AUTHOR" CONTENT="VIGHNESHBALAJI" />
</HEAD>
<BODY>
<FORM NAME="ARTH">
<INPUT TYPE="TEXT" NAME="NUM1" ID="NUM1" SIZE="5" />
<INPUT TYPE="TEXT" NAME="NUM2" ID="NUM2" SIZE="5" />
<INPUT TYPE="TEXT" NAME="ANS" ID="ANS" SIZE="5" />
<INPUT TYPE="BUTTON" VALUE="ADD" ONCLICK="ADD();" />
</FORM>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
FUNCTION ADD()
{
DOCUMENT.ARTH.ANS.VALUE =
PARSEINT(DOCUMENT.ARTH.NUM1.VALUE) +
PARSEINT(DOCUMENT.ARTH.NUM2.VALUE);
}
</SCRIPT>
<IMG SRC="C:\USERS\STUDENT\DESKTOP\WIND.JPG"
NAME="BDYIMG" ID="BDYIMG" USEMAP="#BODY" />
<MAP NAME="BODY" ID="BODY">
<AREA SHAPE="RECT" COORDS="130,75,160,90" HREF="C:\USERS\
STUDENT\DESKTOP\WIND.JPG"
ALT="EYE">
<AREA SHAPE="RECT" COORDS="175,75,200,85" HREF="C:\USERS\
STUDENT\DESKTOP\WIND.JPG"
ALT="EYE">
</MAP>
<BGSOUND SRC = "C:\USERS\FACULTY\DESKTOP\KALIMBA.MP3">
</BODY></HTML>
4. OUTPUT
5. CONCLUSION
Thus we developed a HTML document which displays Friends name and their details using
INPUT, META, SCRIPT, FORM, APPLET, BGSOUND and MAP tags.
------------------------------------------------------------------------------------------------------------------------
PROGRAM 3
2. TEST CASE
TC_01 HTML Tag <Html> Every html document It is used to Same as Success
-----------------</html> contain s opening and represent your html E.O
closing tag of html page in web
browser.
TC_02 HEAD Tag <Head>------------------</ It can define title , style It is used to specify Same as Success
Head> sheet , script language Title tag for the E.O
for the html page page.
TC_03 Title Tag <Title> Title Text Name It specify the Title It accepts the title Same as Success
</Title> heading will appears at text in the browsers E.O
the browser’s title bar page
TC_04 Body Tag <Body> Body tag defines the It displays the html Same as Success
---------------</Body> actual content to be document in the E.O
presents in the web page browser window
TC_05 Heading Tag <h1> Text Name </h1> It represents the text It has higher Same as Success
with bold ,size and face priority for E.O
style displaying the text
TC_06 Back ground <body bgcolor = “red”> It represents the It displays the Same as Success
color background color of the background in red E.O
web page included in color
<body> tag
TC_07 Font color <font color = “yellow”> It defines the color of It displays the text Same as Success
the text in varying color in yellow color E.O
TC_08 Line Breaking <br> It breaks the current line It allows the text to Same as Success
and moves the cursor to enter in new line E.O
the new line
TC_09 Namespace It gives the space It makes the gap Same as Success
between the text between the text E.O
TC_10 Hyperlink <a href = It links the other html We can set the Same as Success
“targetfilename.html> document. hyperlinks to the E.O
Textname </a> text.
3. SOURCE CODE:
<HTML>
<HEAD>
<TITLE>KGCAS</TITLE></HEAD>
<BODY TEXT="VOILET"BGCOLOR="BROWN"><BR>
<PRE><U>1.PERSONAL DETAILS:</U><BR><BR>
<FORM>
GENDER=<INPUT
TYPE="RADIO"NAME="SEX"VALUE="MALE">MALE<INPUT
TYPE="RADIO"NAME="SEX"VALUE="FEMALE">FEMALE<BR> LIVEIN:<SELECT
NAME="LINE IN>
<OPTION VALUE="INDIAN">INDIA
<OPTION VALUE="AMERICAN">AMERICA
<OPTION VALUE="AFRICAN">AFRICA
</SELECT><BR>
PASSWORD:<INPUT TYPE="PASSWORD"NAME="PSWD"><BR><BR>
</SELECT> <BR>
<INPUT TYPE="RESET"><BR><BR>
</FORM>
</BODY>
</HTML>
4. OUTPUT
5. CONCLUSION
PROGRAM 4
Using JavaScript's Window and document objects and their properties and various methods like
alert(), eval(), Parselnt () etc. methods to give the dynamic functionality to HTML web pages
1. AIM:
To Develop a Simple Web Page Using JavaScript's Window and document objects and their
properties and various methods like alert(), eval(), Parselnt () etc. methods to give the dynamic
functionality to HTML web pages
2. TEST CASE
TC_01 HTML Tag <Html> Every html document It is used to Same as Success
-----------------</html> contain s opening and represent your html E.O
closing tag of html page in web
browser.
TC_02 HEAD Tag <Head>------------------</ It can define title , style It is used to specify Same as Success
Head> sheet , script language Title tag for the E.O
for the html page page.
TC_03 Title Tag <Title> Title Text Name It specify the Title It accepts the title Same as Success
</Title> heading will appears at text in the browsers E.O
the browser’s title bar page
TC_04 Body Tag <Body> Body tag defines the It displays the html Same as Success
---------------</Body> actual content to be document in the E.O
presents in the web page browser window
TC_05 Heading Tag <h1> Text Name </h1> It represents the text It has higher Same as Success
with bold ,size and face priority for E.O
style displaying the text
TC_06 Back ground <body bgcolor = “red”> It represents the It displays the Same as Success
color background color of the background in red E.O
web page included in color
<body> tag
TC_07 Font color <font color = “yellow”> It defines the color of It displays the text Same as Success
the text in varying color in yellow color E.O
TC_08 Line Breaking <br> It breaks the current line It allows the text to Same as Success
and moves the cursor to enter in new line E.O
the new line
TC_09 Namespace It gives the space It makes the gap Same as Success
between the text between the text E.O
TC_10 Hyperlink <a href = It links the other html We can set the Same as Success
“targetfilename.html> document. hyperlinks to the E.O
Textname </a> text.
3. SOURCE CODE:
<HTML>
<HEAD>
<TITLE>PRG3</TITLE>
</HEAD>
<BODY ONLOAD="ALERT('WELCOME TO MY WEBPAGE');">
<SCRIPT TYPE="TEXT/JAVASCRIPT">
FUNCTION ADD()
{
VAR A,B,C;
A = PARSEINT(DOCUMENT.ARTH.NUM1.VALUE);
B = PARSEINT(DOCUMENT.ARTH.NUM2.VALUE);
C = A + B;
DOCUMENT.ARTH.ANS.VALUE = EVAL(C);
}
</SCRIPT>
<FORM NAME="ARTH">
NUMBER 1 : <INPUT TYPE="TEXT" NAME="NUM1" ID="NUM1" />
NUMBER 2 : <INPUT TYPE="TEXT" NAME="NUM2" ID="NUM2" />
ADDITION : <INPUT TYPE="TEXT" NAME="ANS" ID="ANS" />
<INPUT TYPE="BUTTON" VALUE="ADD" ONCLICK="ADD();"/>
</FORM></BODY></HTML>
4. OUTPUT
5. CONCLUSION
Thus we developed a HTML document using JavaScript's Window and document objects
and their properties and various methods like alert(), eval(), Parselnt () etc. methods to give the
dynamic functionality to HTML web pages
.
PROGRAM 5
Writing JavaScript snippet which makes use of JavaScript's in-built as well as user defined
objects like navigator, Date Array, Event, Number etc.
1. AIM:
To Develop a Simple Web Page Using JavaScript's Window and document objects and their
properties and various methods like Date()Array(),etc. methods to give the dynamic functionality
to HTML web page.
2. TEST CASE
3. SOURCE CODE:
<html>
<head>
<script type="text/javascript">
function sbt()
{
var mydate=new Date();
var myMonth=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct",
"Nov","Dec");
dsply.innerHTML="</br><B>"+document.prgfrm.uname.value+"</B>"+' today date
is'+mydate.getDate()+' - '+myMonth[mydate.getMonth()]
+"-"+mydate.getFullYear()+" and you use"+navigator.appName+"browser</b>";
}
</script>
</head>
<body>
<form name="prgfrm">
Enter name<input type="text" name="uname" id="uname" onclick="alert('Enter your Name
in Block letters');"/>
<input type="button" value="submit" onclick="sbt();"/>
</form>
<span name="dsply" id="dsply"></span>
</body>
</html>
4. OUTPUT:
4. CONCLUSION:
Thus we developed a Simple Web Page Using JavaScript's Window and document objects and
their properties and various methods like Date()Array(),etc.
PROGRAM 6
Write code which does the form validation in various INPUT elements like Text Field, Text
Area, Password, Selection list etc.
1. AIM:
To Develop a Simple Web Page that includes INPUT elements using Text Field, Text Area,
Password, Selection list etc.
2. TEST CASE
TC_01 HTML Tag <Html> ----------------- Every html document contain It is used to Same as Success
</html> s opening and closing tag of represent your html E.O
html page in web
browser.
TC_02 HEAD Tag <Head>----------------- It can define title , style sheet , It is used to specify Same as Success
-</Head> script language for the html Title tag for the E.O
page page.
TC_03 Title Tag <Title>Program It specify the Title heading It accepts the title Same as Success
6</Title> will appears at the browser’s text in the browsers E.O
title bar page
TC_04 Body Tag <Body> --------------- Body tag defines the actual It displays the html Same as Success
</Body> content to be presents in the document in the E.O
web page browser window
TC_05 Heading Tag <h2> Text Name It represents the text with bold It has second Same as Success
</h2> ,size and face style higher priority for E.O
displaying the text
TC_06 Form Tag <form It is used to include form for It displays the form Same as Success
name="application">- filling purpose. to set the text E.O
----</form> box,checkbox,radio
button and etc.
TC_07 Input Tag <input type="text"> The <input> tag specifies an It allows an input Same as Success
input field where the user can field E.O
enter data.
TC_08 Input Tag <input type="radio" > This tag specifies a radio It allows choose Same as Success
button where the user can any one of the E.O
choose any one option. option.
TC_09 Input Tag <input This tag specifies a check box It allows choose Same as Success
type="checkbox" > button where the user can any number of E.O
choose any number of option. option.
TC_10 Input Tag <input type="button" This tag specifies button It allows user click Same as Success
> where the user can click the the button to E.O
button. display the alert
message.
TC_11 Input Tag <input type="reset" > This tag specifies reset button It clears the Same as Success
where the user can choose this content. E.O
option to clear the previous
content.
3. SOURCE CODE:
<html>
<head>
<title> PROGRAM6</title>
</head>
<body bgcolor="#006060">
<h2> Application form </h2>
<form name="application">
Enter Name : <input type="text" size="20" name="stuname"/><br><br>
Enter Password : <input type="password" size="20" name="stupass"/><br/><br>
Enter Sex: <input type="radio" name="stusex" value="m"/> male
<input type="radio" name="stusex" value="f"/> female<br><br>
Enter Hobbies :
<input type="checkbox" name="stuho1" value="draw"/> Drawing
<input type="checkbox" size="20" name="stuho2" value="read"/> Reading
<input type="checkbox" size="20" name="stuho3" value="paint"/> Painting
<input type="checkbox" size="20" name="stuho4" value="sing"/>
Singing<br><br>
<input type="button" name="bt" onclick="alert(' processing
stop'+document.application.stuname.value);" value="stop"/><br/><br/>
<input type="submit" value="Send the form to server"> <br/><br/>
<input type="reset" value="Empty form">
</form>
</body>
</html>
4. OUTPUT
4. CONCLUSION:
Thus we developed aSimple Web Page that includes INPUT elements using Text Field, Text
Area, Password, Selection list etc.
---------------------------------------------------------------------------------------------------------------
PROGRAM 7
1. AIM:
To Develop a Simple XML web document using XML Declaration, Element Declaration, and
Attribute Declaration.
<?xml
version = "version_number"
encoding = "encoding_declaration"
standalone = "standalone_status"
?>
2. SOURCE CODE:
MVBPR7.xml
<?xml version="1.0" ?>
<?xml-stylesheet href="MVBPRG7.css" type="text/css" ?>
<name>
<myname>Vighneshbalaji</myname>
<regno>1526jb49</regno>
<dept>IT</dept>
<clg>KGCAS</clg>
</name>
MVBPRG7.css
myname
{ color:red; font-family:cursive; }
regno
{ color:green; font-family:cursive; }
dept
{ color:darkblue; font-family:cursive; }
clg
{ color:yellow; font-family:cursive; }
3.OUTPUT:
4.CONCLUSION:
Thus we developed a Simple XML web document using XML Declaration, Element Declaration,
and Attribute Declaration.
----------------------------------------------------------------------------------------------------------------
PROGRAM 8
1. AIM
To develop a XML file that contains the internal and external DTD.
DTD
If the DTD is declared inside the XML file, it must be wrapped inside the <!DOCTYPE>
definition:
!DOCTYPE note defines that the root element of this document is note
!ELEMENT note defines that the note element must contain four elements:
"to,from,heading,body"
!ELEMENT to defines the to element to be of type "#PCDATA"
!ELEMENT from defines the from element to be of type "#PCDATA"
!ELEMENT heading defines the heading element to be of type "#PCDATA"
!ELEMENT body defines the body element to be of type "#PCDATA"
If the DTD is declared in an external file, the <!DOCTYPE> definition must contain a reference
to the DTD file:
2.SOURCE CODE:
MVBPRG8INT.xml
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>
MVBPRG8EXT.xml
<?xml version="1.0"?>
<!DOCTYPE note SYSTEM "note.dtd">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
note.dtd
3.OUTPUT:
4. CONCLUSION
Thus we developed a XML file that contains the internal and external Data Type Definition.