AIM:
To create a web page with all types of Cascading Style Sheets.
.
ALGORITHM:
Step 1: Create a web page with frame sets consisting two frames
Step 2: In the first frame include the links
Step 3: Divide the second frame into two horizontal frames.
Step 4: Create an External Style Sheet (Styhome.css) and use it in home.html.
Step 5: Create an html page title.html which uses embedded style sheet.
Step 6: Create html pages cse.html, ece.html and eee.html which uses inline style sheet.
CODING:
//main.html
<html>
<head>
<title>NEW PRINCE SHRI BHAVANI COLLEGE OF ENGINEERING AND
TECHNOLOGY</title>
</head>
<frameset cols="275,*">
<frame name="left" src="link.html">
<frameset rows="170,*">
<frame name="title" src="title.html">
<frame name="main1" src="home.html">
</frameset>
<noframes>Frames can't be rendered. Update your browser</noframes>
</body>
</html>
//link.html
<html>
<head>
<body bgcolor="cyan" vlink="red" link="green" alink="blue">
<p style="font-size:20pt;color:black">Departments</p>
<ul>
<li><a href="cse.html" target=main1>Computer Science & Engineering</a><br>
<li><a href="ece.html" target=main1>Electrionics and Communication Engineering</a><br>
<li><a href="eee.html" target=main1>Electrical and Electronics Engineering</a><br>
<li><a href="home.html" target=main1>Back to Home Page</a><br>
</ul>
</body>
</html>
//title.html(Embedded style sheet)
<html>
<head>
<style type="text/css">
body
{
background-image:url(logo.jpg);
}
special{font-size:14pt;color:magenta;}
</style>
</head>
<body class"special">
<center><marquee><h3><font color="blue"> Welcome to New Prince Shri Bhavani College of
Engineering and Technology </font></h3></marquee></center>
</body>
</html>
//styhome.css
hr {color:orange}
h2 {color:green font-family:comic sans;}
body { border-color:transparent;background-color:transparent;}
p { font-family:arial; font-size:15pt ; color: grey; background-color: aqua }
//cse.html(Inline style sheet)
<html>
<head>
<h1><marquee><font color="white" size="5">Department of Computer Science and
Engineering</font></marquee>
</h1>
</head>
<body bgcolor="grey" text="white">
<p>Computer science and Engineering majors learn about computer systems and the way humans
and computers interact from a scientific perspective. Instruction includes the theory and design of
hardware and software.</p>
<p>New Prince concentrates on bridging theory and practice, including a wide variety of hardware
and software technologies and their applications and build the students with the latest technologies.
We ensure that the student perceives the computer fundamentals thoroughly. Tests are conducted
once a month and the students are counseled and motivated to bring out their best performance.
Feedback is obtained regularly from the students.</p>
<p>The Department has well equipped computing laboratories with Pentium PCs and a rich
repository of software covering a wide spectrum of applications. The Department conducts DBMS
Lab, Programming Languages Lab, Network Programming Lab, Data structure, Operating system
lab, Software system development lab , Visual programming ,OOAD lab ,Internet programming lab
etc., to train the students to face the competition in the IT field.</p>
The concepts of all types of modulation & demodulation in analog as well as in digital
communication can be studied.
Major Equipments Available:
<ul>
<li>AM transmitter & receiver trainer kits
<li>Digital communication trainer kits
<li>Modulation kits for AM, FM, PAM, PPM, and PWM
<li>AM/FM signal generators
<li>Microphone / Loud Speaker Characteristics kits
<li>Line coding Kits
<li>TDM, FDM & PCM kits
<li>MATLAB and PSPICE software packages and all other basic requirements
</ul>
</p>
</body>
</html>
<html>
<head>
<h1><marquee><font color="white" size="5">Department of Electrical and Electronics
Engineering</font></marquee>
</h1>
</head>
<body bgcolor="grey" text="white">
Harnessing electrical energy is the challenge for electrical engineers. The power packed EEE
department inspires the budding Electrical Engineers with the potent idea of constructing Generating
Stations, Transmission Lines and Distribution Systems at economic rates and to design, test and
supervise the manufacture of Electrical and Electronic equipments used in electrical utilities,
buildings, automobiles, air-crafts, radar, navigation system and broadcast and communication
systems.
</p>
<p>
<font color="orange" size="3">
Vision
</font></p>
<p>
To provide the best opportunity to the students to attain technical excellence in the field of Electrical
and Electronics Engineering and Emerging Technologies and to develop a comprehensive and
integrated personality.
</p>
<p>
<font color="orange" size="3">
Mission
</font></p>
<p>
To produce students with the latest technical knowledge, excelling in innovation on real time
applications and mould them as ethical global leaders with responsibilities.
</p>
<br>
<p>
<font color="orange" size="3">
Opportunities
</font></p>
<p>
The Electrical & Electronics Engineering degree program prepares the graduates to enter a dynamic
and rapidly changing field with career opportunities in Electric Power, Power Electronics,
Microprocessors and Controllers, Integrated Circuits, Robotics and Control, Computer Hardware
and Software. The demand for electrical power and electronic systems is increasing rapidly and
electrical & electronics engineers are in great demand to meet the requirements of the growing
industry. Electrical and Electronics Engineers are mainly employed in industries using Electrical
Power, Manufacturing Electrical Equipment, Electronic Systems, Accessories, Research and
Development departments which work on energy saving devices and Software Development.
</p>
<p>
<font color="orange" size="3">
Facilities
</font></p>
<p>
The department has excellent laboratories with all necessary infrastructures. Some of the
Laboratories and the major equipments
</p>
</body>
</html>
OUTPUT:
Home page with external style sheet and title page with embedded style sheet
Thus, the college web site that makes use of embedded, external and inline style sheets has
been designed and implemented successfully.
EX.NO: 3 VALIDATING FORM USING JAVASCRIPT
DATE :
AIM:
To create a script that will checks whether the field is blank and alert the user if it is blank.
ALGORITHM :
CODING :
<html>
<head>
<title>FORM</title>
<h1 align="center">FEEDBACK FORM</h1>
<script language="JavaScript">
function required()
{
var empt1 = document.forms["form1"]["text1"].value;
var empt2 = document.forms["form1"]["text2"].value
if (empt1 == "")
{
alert("Please valid name");
return false;
}
if (empt2 == "")
{
alert("Please valid register number");
return false;
}
else
{
alert('feedback has accepted ');
return true;
}
}
</script>
</head>
<body>
<FORM name="form1"METHOD="POST" ACTION="#" onsubmit="required()">
NAME: <INPUT NAME="text1" TYPE="TEXT"><BR>
REGNO : <INPUT NAME="text2" TYPE="TEXT"><BR>
SUBJECT :<BR>
CN : <INPUT TYPE="RADIO"
NAME="EASY">EASY<INPUT TYPE="RADIO" NAME="AVERAGE">AVERAGE<INPUT
TYPE="RADIO" NAME="TOUGH">TOUGH<BR>
OOAD : <INPUT TYPE="RADIO" NAME="EASY">EASY<INPUT TYPE="RADIO"
NAME="AVERAGE">AVERAGE<INPUT TYPE="RADIO" NAME="TOUGH">TOUGH<BR>
WP : <INPUT TYPE="RADIO"
NAME="EASY">EASY<INPUT TYPE="RADIO" NAME="AVERAGE">AVERAGE<INPUT
TYPE="RADIO" NAME="TOUGH">TOUGH<BR>
DSP : <INPUT TYPE="RADIO" NAME="EASY">EASY<INPUT
TYPE="RADIO" NAME="AVERAGE">AVERAGE<INPUT TYPE="RADIO"
NAME="TOUGH">TOUGH<BR>
G&M : <INPUT TYPE="RADIO" NAME="EASY">EASY<INPUT TYPE="RADIO"
NAME="AVERAGE">AVERAGE<INPUT TYPE="RADIO" NAME="TOUGH">TOUGH<BR>
WC : <INPUT TYPE="RADIO"
NAME="EASY">EASY<INPUT TYPE="RADIO" NAME="AVERAGE">AVERAGE<INPUT
TYPE="RADIO" NAME="TOUGH">TOUGH<BR><br><br>
<INPUT TYPE="SUBMIT" VALUE="SUBMIT"><INPUT TYPE="RESET" VALUE="RESET">
</FORM>
</BODY>
</html>
OUTPUT :