CONTENT
[Link] TITLE PAGE SIGNATURE
NO
1
AWT components
2
Layouts
3
Color palette
4
Display the contents of home page with data,
content type, and expiration date, last
modification and length of the homepage
5
Chat application with datagram sockets and
datagram packets
6
Servlet Program to invoke servlets from html
forms
7
Online examination
8
Web page creation
To embed a map in a web page
To fix the hot spots in that map
Show all the related information
when the host spots are clicked
9
Web page creations using Cascading style
sheet
Ex No :1
AWT COMPONENTS
Date:
AIM:
To write a program in java to demonstrate the use of following components like text fields,
scrollbar, check list and choice box
PROCEDURE:
1. Import the necessary package [Link].*;,[Link].*;,[Link].*;
2. Declare the class AWTControls and implements Action listener, item Listener,Adjust
Listener.
3. Include there component with choice box, buttons, scrollbar, text fields, check box, list
And implement action performed event and create the object for action performedAdd action
listener for every object component.
4. Declare the paint function and display the object.
5. Terminate the program.
PROGRAM:
import [Link].*;
import [Link].*;
import [Link].*;
/*
<applet code="AWTControls" width=500 height=550>
</applet>
*/
public class AWTControls extends Applet implements ActionListener, ItemListener,
AdjustmentListener
String btnMsg = "";
String lstMsg = "";
Button btnHard, btnSoft;
Checkbox chkC, chkCpp, chkJava;
CheckboxGroupcbgCompany;
Checkbox optTcs, optInfosys, optSyntel;
Scrollbar horzCurrent, vertExpected;
TextFieldtxtName, txtPasswd;
TextAreatxtaComments = new TextArea("", 5, 30);
Choice chCity;
List lstAccompany;
public void init() {
Label lblName = new Label("Name : ");
Label lblPasswd = new Label("Password : ");
Label lblField = new Label("Field of Interest : ");
Label lblSkill = new Label("Software Skill(s) : ");
Label lblDreamComp = new Label("Dream Company : ");
Label lblCurrent = new Label("Current % : ");
Label lblExpected = new Label("Expected % : ");
Label lblCity = new Label("Preferred City : ");
Label lblAccompany = new Label("Accompanying Persons% : ");
txtName = new TextField(15);
txtPasswd = new TextField(15);
[Link]('*');
btnHard = new Button("Hardware") ;
btnSoft = new Button("Software") ;
chkC = new Checkbox("C");
chkCpp = new Checkbox("C++");
chkJava = new Checkbox("Java");
cbgCompany = new CheckboxGroup();
optTcs = new Checkbox("Tata Consultancy Services", cbgCompany, true);
optInfosys = new Checkbox("Infosys", cbgCompany, false);
optSyntel = new Checkbox("Syntel India Ltd", cbgCompany, false);
horzCurrent = new Scrollbar([Link], 0,1, 1, 101);
vertExpected = new Scrollbar([Link],0, 1, 1, 101);
chCity = new Choice();
[Link]("Chennai");
[Link]("Bangalore");
[Link]("Hyderabad");
[Link]("Trivandrum");
lstAccompany = new List(4, true);
[Link]("Father");
[Link]("Mother");
[Link]("Brother");
[Link]("Sister");
add(lblName);
add(txtName);
add(lblPasswd);
add(txtPasswd);
add(lblField);
add(btnHard);
add(btnSoft);
add(lblSkill);
add(chkC);
add(chkCpp);
add(chkJava);
add(lblDreamComp);
add(optTcs);
add(optInfosys);
add(optSyntel);
add(lblCurrent);
add(horzCurrent);
add(lblExpected);
add(vertExpected);
add(txtaComments);
add(lblCity);
add(chCity);
add(lblAccompany);
add(lstAccompany);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
[Link](this);
}
public void actionPerformed(ActionEvent ae)
{
String str = [Link]();
if([Link]("Hardware"))
{
btnMsg = "Hardware";
}
else if([Link]("Software"))
{
btnMsg = "Software";
}
repaint();
}
public void itemStateChanged(ItemEventie) {
repaint();
}
public void adjustmentValueChanged(AdjustmentEvent ae) {
repaint();
}
public void paint(Graphics g) {
[Link]("Detailed Profile :-", 10, 300);
[Link]("Field of Interest : " + btnMsg, 10,320);
[Link]("Software Skill(s) : " , 10, 340);
[Link]("C : " + [Link](), 10, 360);
[Link]("C++ : " + [Link](), 10, 380);
[Link]("Java : " + [Link](), 10,400);
[Link]("Dream Company : " +
[Link]().getLabel(), 10,420);
[Link]("Current % : " +
[Link](), 10, 440);
[Link]("Expected % : " +[Link](), 10, 460);
[Link]("Name: " + [Link](), 10, 480);
[Link]("Password: " + [Link](), 10,500);
[Link]("Preferred City : " +[Link](), 10, 520);
int idx[];
idx = [Link]();
lstMsg = "Accompanying Persons : ";
for(int i=0; i<[Link]; i++)
lstMsg += [Link](idx[i]) + " ";
[Link](lstMsg, 10, 540);
}
}
OUTPUT:
RESULT:
Thus the above program has been executed successfully.
Ex No :3
PALETTE COLORS
Date:
AIM:
To write a java program to create applets incorporating the following features
1. Create a color palette with matrix buttons.
2. Set background and foreground of the control text area by selecting a color from color
palette
3. In order to select foreground (or) background use checkbox control as radio buttons
ALGORITHM:
Step 1: Write a html applet tag with code set class name and comment the tag
Step 2: Import all necessary packages and classes
Step 3: Define a class that extends applet and implements action listener and item listener
Step 4: Declare an array of buttons to set colors, two checkboxes for foreground and background
colors
Step 5: Declare a text area to hold the text, a checkbox group for checkboxes
Step 6: Declare three panels, buttonpanel, palettepanel and checkpanel
Step 7: Declare a string, color.
Step 8: In the init() method, do the following:
i) Create the buttonpanel and set the layout to gridlayout of 3 X 3
ii) Create an array of 9 buttons for various colors
iii) Add action listener to each button and add all of them to button panel
iv) Create the checkpanel and set its layout to flow layout
v) Create a checkbox group. Then create forground and background checkboxes
vi) Add item listener to each checkbox and add them to the checkpanel
vii) Create a text area and change its font to desired one.
viii) Create the palettepanel and set is layout to border layout
ix) Add the text area, buttonpanel, and checkpanel to various zones of the border layout
x) Add the palettepanel to the applet
Step 9: Write an empty itemStateChanged() method
Step 10: In the actionPerformed() method, do the following:
i) Get the action command in the string, color
ii) If foreground is checked then set the foreground color to the selected color
iii) If background is checked then set the background color to the selected color
PROGRAM:
/*<applet code = palette height = 600 width = 600>
</applet>
*/
import [Link].*;
import [Link].*;
import [Link].*;
public class palette extends Applet implements ActionListener, ItemListener
{
Button[] colors;
Checkbox foreground, background;
TextAreaworkarea;
CheckboxGroupcbg;
Panel buttonpanel, checkpanel, palettepanel;
String colour;
public void init()
{
buttonpanel = new Panel();
[Link](new GridLayout(3,3));
colors=new Button [9];
colors[0]=new Button("RED");
colors[1]=new Button("GREEN");
colors[2]=new Button("BLUE");
colors[3]=new Button("CYAN");
colors[4]=new Button("ORANGE");
colors[5]=new Button("GRAY");
colors[6]=new Button("BLACK");
colors[7]=new Button("YELLOW");
colors[8]=new Button("PINK");
for(int i=0; i<9; i++)
{
colors[i].addActionListener(this);
[Link](colors[i]);
}
checkpanel=new Panel();
[Link](new FlowLayout());
cbg=new CheckboxGroup();
foreground=new Checkbox("ForeGround",cbg,true);
background=new Checkbox("BackGround",cbg,false);
[Link](this);
[Link](this);
[Link](foreground);
[Link](background);
workarea=new TextArea(8,40);
[Link](new Font("Garamond",[Link],20));
palettepanel=new Panel();
[Link](new BorderLayout());
[Link](workarea,[Link]);
[Link](checkpanel,[Link]);
[Link](buttonpanel,[Link]);
add(palettepanel);
}
public void itemStateChanged(ItemEventie)
{
}
public void actionPerformed(ActionEvent ae)
{
colour=[Link]();
if([Link]()==true)
[Link](getColour());
if([Link]()==true)
[Link](getColour());
}
public Color getColour()
{
Color mycolor=null;
if([Link]("RED"))
mycolor=[Link];
if([Link]("GREEN"))
mycolor=[Link];
if([Link]("BLUE"))
mycolor=[Link];
if([Link]("CYAN"))
mycolor=[Link];
if([Link]("ORANGE"))
mycolor=[Link];
if([Link]("GRAY"))
mycolor=[Link];
if([Link]("BLACK"))
mycolor=[Link];
if([Link]("YELLOW"))
mycolor=[Link];
if([Link]("PINK"))
mycolor=[Link];
return mycolor;
}
OUTPUT:
RESULT:
Thus the above program has been executed successfully.
Ex No :4
DISPLAY THE CONTENTS AND OTHER
Date: INFORMATION OF HOME PAGE USING URL
AIM:
To write a java program to demonstrate the use of URL.
ALGORITHM:
1. Using the URL class locate the server with the help of URL specified in the command
prompt.
2. Using the appropriate streams and open the home page of the server.
3. Display the contents of the homepage in the console.
4. Using the methods getDate(),getContentType(), getExpiration(),getLastmodified()and
getLength() display the above said information of the homepage on the console.
PROGRAM:
import [Link].*;
import [Link].*;
import [Link].*;
class UrlDemo
{
public static void main(String[] arg)throws MalformedURLException,IOException
{
try
{
URL u= new URL("file:\\z:\\[Link]");
URLConnectionuc=[Link]();
InputStream in=[Link]();
int c;
while(( c=[Link]())!= -1)
[Link]((char)c);
[Link]("content length:"+[Link]());
[Link]("content type:"+[Link]());
[Link]("content encoding:"+[Link]());
[Link]("date:"+new Date([Link]()));
[Link]("modified date:"+new Date([Link]()));
[Link]("expired date:"+new Date([Link]()));
}
catch(MalformedURLException e)
{
[Link]("exception caught:"+e);
}
catch(IOException e1)
{
[Link]("exception caught:"+e1);
}
}
}
[Link]
<html>
<head>
<title> MY HTML </title>
</head>
<body>
<center>WELCOME</center>
</body>
</html>
OUTPUT:
RESULT:
Thus the program to read data and header information from an URL was successfully
executed and the output was verified
Ex No :5
SIMPLE CHAT APPLICATION
Date:
AIM:
To write a java program to create simple chat application using datagram sockets and
datagram packets
ALGORITHM:
1. Start the UDP chat program
2. Import the package [Link].*;
3. Declare the datagram sockets, datagram packets, buffered reader and Inet address
4. Start main function
5. In the main function using while loop it perform the loop until str. Equals is top
6. There important while loop function
7. Terminate the UDP client program
PROGRAM:
UDPServer. Java
import [Link].*;
import [Link].*;
class UDPServer
{
public static DatagramSocketserversocket;
public static DatagramPacketdp;
public static BufferedReader dis;
public static InetAddressia;
public static byte buf[] = new byte[1024];
public static int cport = 789,sport=790;
public static void main(String[] a) throws IOException
{
serversocket = new DatagramSocket(sport);
dp = new DatagramPacket(buf,[Link]);
dis = new BufferedReader(new InputStreamReader([Link]));
ia = [Link]();
[Link]("Server is Running...");
while(true)
{
[Link](dp);
String str = new String([Link](), 0, [Link]());
[Link]("Client: " + str);
String str1 = new String([Link]());
buf = [Link]();
[Link](new DatagramPacket(buf,[Link](), ia, cport));
}
}
}
[Link]:
import [Link].*;
import [Link].*;
class UDPClient
{
public static DatagramSocketclientsocket;
public static DatagramPacketdp;
public static BufferedReader dis;
public static InetAddressia;
public static byte buf[] = new byte[1024];
public static int cport = 789,sport = 790;
public static void main(String[] a) throws IOException
{
clientsocket = new DatagramSocket(cport);
dp = new DatagramPacket(buf, [Link]);
dis = new BufferedReader(new InputStreamReader([Link]));
ia = [Link]();
[Link]("Client is Running...Type the Msg...");
while(true)
{
String str = new String([Link]());
buf = [Link]();
[Link](new DatagramPacket(buf, [Link](), ia, sport));
[Link](dp);
String str2 = new String([Link](), 0, [Link]());
[Link]("Server: " + str2);
}
}
}
OUTPUT:
RESULT:
Thus the above simple chat application is executed successfully
Ex No :6
INVOKING SERVLETS
Date:
AIM:
To invoke the servlets from the HTML forms
ALGORITHM:
1. Start the invoking servlets from the HTML forms
2. Create the post [Link]
3. Use the two input type for employee name and phone no
4. Save the post [Link]
5. Create java servlet for invoke the html form.
6. Then follow the step
Open web browser and type
[Link]
Select tomcat manger
Deploy the ware file and run.
7. Finally terminate the invoking servlets html form
PROGRAM:
[Link]
import [Link].*;
import [Link].*;
import [Link].*;
public class PostParam extends GenericServlet {
public void service(ServletRequest
request,ServletResponse response) throws
ServletException, IOException {
PrintWriter pw = [Link]();
Enumeration e = [Link]();
while([Link]()) {
String pname = (String)[Link]();
[Link](pname + " = ");
String pvalue = [Link](pname);
[Link](pvalue);
}
[Link]();
}
}
[Link]
<HTML>
<BODY>
<CENTER>
<FORM name = "postparam" method = "post"
action="[Link]
<TABLE>
<tr>
<td><B>Employee </B></td>
<td><input type = "textbox" name="ename" size="25"
value=""></td>
</tr>
<tr>
<td><B>Phone </B></td>
<td><input type = "textbox" name="phoneno" size="25"
value=""></td>
</tr>
</TABLE>
<INPUT type = "submit" value="Submit">
</body>
</html>
OUTPUT:
RESULT:
Thus the above servlet form successfully executed .
Ex No :7
ONLINE EXAMINATION
Date:
AIM:
To write a java servlet program to conduct online examination and to display student mark
listavailable in a database.
ALGORITHM:
1. Create a html file with form tag.
2. The form tag action=”[Link]
3. Create a two textbox(name & seat number).
4. The 5 question are defined into true or false model and close the all tags.
5. Import the necessary packages and declare class, class name in exam.
6. Declare the connection, statement and result set object.
7. Use the deposit () for check the connection in JDBC:ODBC driver.
8. The data are inserting into corresponding table.
9. The execute update () are update the database. Step10: Display the table in after html file
compilation.
PROGRAM:
//[Link]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome to Online Examination!!!!</title>
</head>
<body>
Welcome to Online Examination!!!!
<form action="exam" method="get">
<label><p> Enter Your name Please!!<br/><input type="text" name="name"/>
<br/>
<input type="submit" name="SUBMIT"/>
</p></label>
</form>
</body>
</html>
//[Link]
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class exam extends HttpServlet
{
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{ [Link]("text/html");
PrintWriter out=[Link](); Stringname=[Link]("name");
[Link]("<html>");
[Link]("<head>");
[Link]("<title>Online Examination</title>"); [Link]("</head>");
[Link]("<body bgcolor=PINK>");
[Link]("<h2 align=center>Online Examination</h2><hr>"); [Link]("<h3 align=center>
Welcome Mr."+name+"</h3><hr>"); [Link]("<h4><u>Terms and Conditions:</u></h4>");
[Link]("<ul type=disc>");
[Link]("<li>The Paper consists a set of five questions.</li>"); [Link]("<li>Every question
consists of two options.</li>"); [Link]("<li>All must be answered</li></ul><hr>");
[Link]("<center><h5><u>Your Questions</u></h5></center>"); [Link]("<hr>");
[Link]("<form method=get action=exam2>");
[Link]("<p>[Link] Systemisa......................................</p>");
[Link]("<input type=radio name=q1value=0>Hardware"); [Link]("<br>");
[Link]("<input type=radio name=q1value=1>Software"); [Link]("<hr>");
[Link]("<p>[Link] of CLanguageis.....................................</p>");
[Link]("<br>");
[Link]("<input type=radio name=q2 value=0>Dennis Richee"); [Link]("<br>");
[Link]("<input type=radio name=q2 value=1>James Thompson"); [Link]("<hr>");
[Link]("<p>[Link] of the following is a multitasking,multiuser,multiprocessing);
[Link]("OS...........................</p>");
[Link]("<br>");
[Link]("<input type=radio name=q3 value=0>MSDOS"); [Link]("<br>");
[Link]("<input type=radio name=q3 value=1>Windows NT"); [Link]("<hr>");
[Link]("<p>[Link] ofComputersis......................................</p>");
[Link]("<br>");
[Link]("<input type=radio name=q4 value=1>Charles babbage"); [Link]("<br>");
[Link]("<input type=radio name=q4 value=0>Charles Dickson"); [Link]("<hr>");
[Link]("<p>[Link] is the current generation of computers?</p>"); [Link]("<br>");
[Link]("<input type=radio name=q5value=0>Fifth"); [Link]("<br>");
[Link]("<input type=radio name=q5value=1>Sixth"); [Link]("<hr>");
[Link]("<input type=submitvalue=Done>"); [Link]("</form>");
[Link]("</body>"); [Link]("</html>");
}
public String getServletInfo() { return "A Servlet of the user";
}
}
//[Link]
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class exam2 extends HttpServlet
{
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{ int count=0,j; [Link]("text/html");
PrintWriter out=[Link](); String q1=[Link]("q1"); String
q2=[Link]("q2"); String q3=[Link]("q3"); String
q4=[Link]("q4"); String q5=[Link]("q5"); if([Link]("1"))
{
count=count+1;
}
if([Link]("1"))
{
count=count+1;
}
if([Link]("1"))
{
count=count+1;
}
if([Link]("1"))
{
count=count+1;
}
if([Link]("1"))
{
count=count+1;
}
[Link]("<html>");
[Link]("<head><title>ExaminationResults</title></head>"); [Link]("<body>");
[Link]("<h2 align=center<Online Examination</h2><hr>"); [Link]("<h3>Number of
Questions answered correctly:</h3>"+count); if(count>=3)
{
[Link]("<hr><h3>Congrats!!! You Have Passed!!!</h3><hr>"); [Link]("<h4><b>Try
Other Tests!!</b></h4>");
}
else
{
[Link]("<hr><h3>Sorry!!! You Have Failed!!!</h3><hr>"); [Link]("<h4><b>Try
Again:</b></h4>");
}
[Link]("</body>"); [Link]("</html>");
}
public String getServletInfo() { return "A Servlet of the User";
}
}
OUTPUT:
RESULT:
thus the above program has been executed successfully.
Ex No: 8 CREATING A WEBPAGE WITH IMAGE
MAPS AND HOTSPOTS
Date:
AIM:
To create a webpage with the following using HTML
• To embed an image in web page
• To fix the hotspots.
• Show all the related information when a hot spot is clicked in themap
ALGORITHM:
1) Create a html file with maptag.
2) Set the source attribute of the img tag to the location of the image and also set the
usemap attribute.
3) Specify an area with name, shape and href set of the appropriatevalue.
4) Repeat step3 as many hot spots you want to put in the map.
5) Create html file for each and every hot spots the user will select the particular
location itshows information aboutit.
PROGRAM:
/*[Link]*/
<html>
<head>
<title>India Map</title>
<head>
<body bgcolor="PINK">
<font face="Monotype Corsiva" color="BLUE" size="6">
<marquee direction="left" behavior="alternate">INDIA MAP
</marquee>
</font>
<hr size="6" color="RED">
<map name="pagemap">
<area shape="rect" coords="194,151,247,219"href="[Link]">
<area shape="rect" coords="291,268,384,337"href="[Link]">
<area shape="rect" coords="100,337,197,384"href="[Link]">
<area shape="rect" coords="236,543,344,577"href="[Link]">
</map>
<imgsrc="[Link]" usemap="#pagemap">
</body>
<font color="#ff0000" size="5">
<p><b>Hints:</b><i>Click on the Name of the Cities in the map to
know its description</i></p>
</html>
/*[Link]*/
<html>
<body bgcolor="SKYBLUE">
<font face="Monotype Corsiva" size="18" color="RED">
<center><b><i><tt>Delhi is the capital of our INDIA<br> and <br>More IT companies
are Camped at Delhi</tt></i></b></center>
<a href="[Link]">Home Page</a>
</font>
</body>
</html>
/*[Link]*/
<html>
<body bgcolor="SKYBLUE">
<font face="Times New Roman" size="18" color="RED">
<center><b><i>Calcutta is the wealthy city in WEST BENGAL<br> and <br>it has
Famous "Sunderbans Forests"</i></b></center>
<a href="[Link]">Home Page</a>
</font></body></html>
/*[Link]*/
<html>
<body bgcolor="DARKGREEN">
<font face="Times New Roman" size="12" color="RED">
<center>MUMBAI is the capital of Maharashtra<br> and <br>it has Famous India
Gate</center>
<a href="[Link]">Home Page</a>
</font>
</body>
</html>
/*[Link]*/
<html>
<body bgcolor="BLACK">
<font face="Times New Roman" size="12" color="RED">
<center>Chennai is hte capital of Tamil Nadu<br> and <br>More IT companies are camped at
Chennai</center>
<a href="[Link]">Home Page</a>
</font>
</body>
</html>
OUTPUT:
RESULT :
Thus the above mapping process is executed successfully.
Ex No :9
CREATING COLLEGE WEB SITE
Date:
AIM:
To create a college web page using
i. Cascading style sheets
ii. Embedded style sheets
iii. Inline style sheets .use in our college information
ALGORITHM:
1) Create a HTML document using style sheet information
2) Place some information in the document
3) Apply any font with style 48pt and color as green for our college name using
inline style in the <h1> tag
4) Create a CSS file which contains the course details and link it to the document
using the <link> tag by applying external style concept .
5) Describe the current sem subjects in our own way of following by applying
internal style concept
PROGRAM:
[Link]:
<html>
<frameset rows="70,*">
<frame src="[Link]" name="f1">
<frameset cols="35%,*">
<frame src="[Link]" name="f2">
<frame name="f3">
</frameset>
</frameset>
</html>
[Link]:
<html>
<head><title>index</title>
</head>
<body bgcolor="magenta">
<center><h1>THENI KAMMAVAR SANGAM COLLEGE OF ARTS &
SCIENCE</h1></center>
</body>
</html>
LINK .HTML:
<html>
<head><title>linking...</title>
</head>
<body bgcolor="green">
<center>
<h2>DO U WANT TO KNOW...</h2>
<br>
<br>
<a href="[Link]" target="f3">DEPARTMENT</a><br>
<a href="[Link]" target="f3">FACILITIES</a><br>
<a href="[Link]" target="f3">CELEBRATION</a><br>
<a href="[Link]" target="f3">GALLERY</a><br>
<a href="[Link]" target="f3">FEES</a><br>
<a href="[Link]" target="f3">ADDRESS</a><br>
<br>
<br>
</body>
</html>
[Link]:
<html>
<head>
<title>Working with Style Sheets</title>
<style type="text/css">
h1 {font-family:monotypecorsiva}
h2 {background-color:gray;background-repeat:repeat-x}
p {font-size:12pt;font-weight:bold;color:#23238e;border-style:groove}
u1 {list-style-type:lower-roman}
</style>
</head>
<body bgcolor="pink">
<center>
<h1>WELCOME TO OUR COLLEGE DEPARTMENTS</h1>
<h2>Here, you will be choose u r fav course</h2><br>
<p>Our college provides many courses....u will be choose any course for u r future.......it's ur
choice</p>
<h1><u>PG COURSES</u></h1>
<ul>
<li>[Link] CS</li>
<li>[Link] Physics</li>
<li>[Link] Chemistry</li>
<li>[Link]</li>
<li>[Link]</li>
</ul>
<h1><u>UG COURSES</u></h1>
<ul>
<li>[Link] CS</li>
<li>[Link] Physics</li>
<li>[Link] Chemistry</li>
<li>[Link]</li>
<li>BCA</li>
<li>BA</li>
<li>BBA</li>
<li>[Link] CA</li>
<li>[Link]</li>
<li>[Link] Banking</li>
</ul>
<br><br><br>
<a href ="[Link]">FEES</a>
<h1><marquee behaviour="right">Thanks for visiting.....</marquee></h1>
</body>
</html>
[Link]:
<html>
<head>
<title>external style sheets</title>
<link rel=stylesheet href="[Link]">
</head>
<body bgcolor="cyan">
<center><h2>OUR COLLEGE FACILITIES</h2></center>Facilities are.....<br>
<ul type="1" color="blue">
<li>Hostel for Girls & Boys</li>
<li>Canteen</li>
<li>Library</li>
<li>Sick Room</li>
<li>lab Facility</li>
</ul>
</body>
</html>
[Link]:
<html>
<head>
<title>Working with style sheets</title>
<style type="text/css">
h2 {font-family:Playbill;background-color:red}
ul {list-style-type:lower-roman}
</style>
</head>
<body bgcolor="orange">
<center><h2>Our College Celebrations.....</h2></center>
<br> Celebrations are....<br>
<ul>
<li>Associations</li>
<li>Festivals</li>
</ul>
<br><br><br>
<h2><marquee behaviour="right">Thank You....</marquee></h2>
</body>
</html>
[Link]:
: <html>
<head>
<title>external style sheets</title>
<link rel=stylesheet href="[Link]">
</head>
<body>
<center><h2>....IMAGES....</h2><center>
<br>
<center>Our College....</center>
<br><br><br>
<imgsrc="C:\Picture\Building\download (2).jpg">
<center>Our Library....</center>
<br><br><br>
<imgsrc="C:\Picture\college\images (1).jpg">
<center>Our ClassRoom....</center>
<br><br><br>
<imgsrc="C:\Picture\college\download (8).jpg">
</body>
</html>
[Link]:
<html>
<head>
<title>fees</title>
<h1 style-color="cyan" font size=10% font family="Small Fonts"></h1>
</head>
<body bgcolor="brown">
<center><h1>COLLEGE FEES</h1></center>
<table border=5 align="center" BORDERCOLOR="#ac6d07" bgcolor="gray"
width="50%" height="50%">
<h2><tr><th align="center" bgcolor="red">DEGREE</h2>
<h2><th align="center" bgcolor="blue">FEES</h2>
<center><tr><td>[Link] CS</td><td>16000</td></tr></center>
<center><tr><td>[Link] Physics</td><td>15500</td></tr></center>
<center><tr><td>[Link] Chemistry</td><td>16500</td></tr></center>
<center><tr><td>[Link]</td><td>14000</td></tr></center>
<center><tr><td>[Link]</td><td>13500</td></tr></center>
<center><tr><td>[Link] CS</td><td>13500</td></tr></center>
<center><tr><td>[Link] Physics</td><td>12500</td></tr></center>
<center><tr><td>[Link] Chemistry</td><td>14500</td></tr></center>
<center><tr><td>[Link]</td><td>11500</td></tr></center>
<center><tr><td>BCA</td><td>14500</td></tr></center>
<center><tr><td>BA</td><td>11000</td></tr></center>
<center><tr><td>BBA</td><td>10500</td></tr></center>
<center><tr><td>[Link] CA</td><td>14500</td></tr></center>
<center><tr><td>[Link]</td><td>10500</td></tr></center>
<center><tr><td>[Link] Banking</td><td>11500</td></tr></center>
</table>
</body>
</html>
[Link]:
<html>
<head>
<title>working wid style sheet</title>
<style type="text/css">
h1 {font-family:RockWell;background-color:red}
</style>
</head>
<body bgcolor="pink">
<center><h1>Our Colege Address.....</h1></center>
<br>
<h1><u>Address........</u></h1><br>
TKS College of Arts &Science,<br>
KammavarNagar,<br>
AranmanaiPudur,Theni.<br>
Ph:04546-250882, 250498<br>
email id:tksclgas@[Link]
<h1><marquee behaviour="right">Thanking You.....</marquee></h1>
</body>
</html>
OUTPUT:
RESULT:
The above college web page is create and executed successfully.