Professional Documents
Culture Documents
73 Sample Chapter
73 Sample Chapter
<head>
<title>top</title>
</head>
<body background="sunrise1.jpg">
<div style="color:purple;font-weight:bold;">
Welcome<br>
To Andhra Pradesh<br>
Tourism<br>
Official Website<br>
</div>
<div align="center">
<a href="exlplore.html"><font
color="blue">Explore</font></a>
</div>
</body>
Aboutus.html
<html>
<head>
<title>AboutUs</title>
</head>
<div align="center">
</div>
<p>
<b style="color:blue;">Vision</b><br>
<p>
It results in all round growth by means of an economic multiplier effect that percolates to various
stake-holders and other sectors such as airlines, railways, surface cruises, hotels etc.
The Vision of Andhra Pradesh tourism is to promote steady and sustained growth phase of the
travel and tourism sector in Andhra Pradesh making the destinations more accessible, more
attractive with many facilities and amenities for the tourists worldwide.
</p>
<p>
"To maintain its current position as the most sought-after tourism destination for an authentic,
luxurious, and personalized feel and experience of Andhra Pradesh for travelers from all regions."
Tourism is a major phenomenon in the modern society that has emerged as a successful economic
activity carrying immense global importance. There is hardly any other field of activity, which has
so many people involved directly or indirectly.
Tourism finds a niche for itself as an effective instrument in terms of generating employment,
earning revenue and foreign exchange, enhance environment, preserving culture and tradition
thereby resulting in overall development. Tourism is regarded as one of the world's largest and
fastest growing industries and Andhra Pradesh Tourism has grown by leaps and bounds over last
few years and is also gearing up to achieve significant progress in the field due to a many
encouraging factors.
Andhra Pradesh has vast geographical area combined with great historical and cultural heritage,
which are excellent conditions for more growth in this sector. The vision of Andhra Pradesh
tourism is to serve as a guiding force that offers a clear vision and direction for optimizing the
tourism potential of this state in a sustainable manner.
</p>
<b style="color:blue;">Mission</b>
<p>
According to Government of India estimates, every one crore that is invested in Tourism creates
475 jobs compared to 126 jobs from manufacturing sector, which proves the potential of this
sector.
</p>
<b style="color:blue;">Goals</b>
<ol type="circle">
<li>Make Andhra Pradesh travel and tourism more popular and attractive</li>
<li> Make the public gain more awareness regarding the importance and usefulness of travel and
tourism</li>
<li> Use more publicity to promote tourism destinations including the facilities and amenities
available</li>
<li> Develop the travel and tourism industry in Andhra Pradesh, making it more profitable and
competent</li>
<li> Promote eco-friendly and responsible tourism including a profit share to the local
population</li>
</p>
</body>
</html>
Contact us.html:
<html>
<head>
<title>contactus</title>
</head>
<body background="ContactUs1.png">
<div align="center">
<p style="color:purple;font-weight:bold;text-align:center;font-size:35;">
Email:samyashaik@gmail.com<br>
Phno:8686761643<br>
State:Andhra pradesh<br>
Country:India<br>
</p>
</body>
</html>
OUTPUT:
Output for top.html:
PROGRAM:
mapping.html
<html>
<head>
<title>mapping</title>
</head>
<body>
<map name="MCA">
shape="square" coords="372,313,367,355">
</map>
</body>
</html>
Webpage.html
<html>
<head>
<title>mapping</title>
</head>
<body>
<map name="MCA">
<area href="F:\harika\webpage.html" target="_blank"
shape="square" coords="372,313,367,355">
</map>
</body>
</html>
OUTPUT:
Output for mapping.html:
PROGRAM:
<html>
<head>
</head>
<body bgcolor="blue">
<p>
<strong>
"Kakarparthi Bhavanarayana College with its four decades reputation has been leaving no stone
unturned to achieve the pre-set goal of transforming every student into a great leader by imparting
rich and qualitative education” . After establishing college in 1965 at vijayawada it bagged many
laurels to its credit and created many responsible citizens. Every educating student requires
attention to virtues, ethics, character and integrity.“The college had been sponsored by a century-
old society ... SKPVV Hindu High School's Committee “.
</strong>
</font>
</p>
<p>
<ul>
<li>Experienced faculties</li>
<li>Hostel facilities.</li>
<li>Parents can get to know their childrens attendance and academic performance through
phone.</li>
<li>The college received 2nd Best Library award from Acharya Nagarjuna University.</li>
<li>The library of KBN college is housed with huge collection of books, national and
international journals.</li>
</p>
</ul>
</font>
<p>
<em>
Every year KBN college has conducting placements.so many companies are there and recurit the
students.companies are like:tcs,Tech mahindra,Accenture,hdfc bank,wipro,dell,muthoot,efftronics
etc.......
</em>
</p>
</font>
</body>
</html>
OUTPUT:
4) Write a Program demonstrate concept of tables
AIM: To demonstrate concept of tables
PROGRAM:
<html>
<head>
<title>Timetable</title>
</head>
<body>
<tr>
</tr>
<tr>
<th>DAYS/HOURS</th>
<th align="center">1</th>
<th align="center">2</th>
<th align="center">3</th>
<b>B<br><br>R<br><br>E<br><br>A<br><br>K<br></b>
</font></td>
<th align="center">4</th>
<th align="center">5</th>
<th align="center">6</th>
</tr>
<tr>
<th>MONDAY</th>
<td align="center">Artificial<br>Intelligence</td>
<td align="center">Web<br>Technology</td>
<td align="center">DAA</td>
<td align="center">OOAD</td>
<td align="center">Library</td>
</tr>
<tr>
<th>TUESDAY</th>
<td align="center">DAA</td>
<td align="center">OOAD</td>
<td align="center">Web<br>Technology</td>
<td align="center">Information<br>Security</td>
</tr>
<tr>
<th>WEDNESDAY</th>
<td align="center">Information<br>Security</td>
<td align="center">Artificial<br>Intelligence</td>
<td align="center">Web<br>Technology</td>
<td align="center">OOAD</td>
</tr>
<tr>
<th>THURSDAY</th>
<td align="center">DAA</td>
<td align="center">OOAD</td>
<td align="center">Web<br>Technology</td>
<td align="center">Artificial<br>Intelligence</td>
<td align="center">Information<br>Security</td>
<td align="center">Seminar</td>
</tr>
<tr>
<th>FRIDAY</th>
<td align="center">DAA</td>
<td align="center">Information<br>Security</td>
<td align="center">Communication<br>skills</td>
<td align="center">OOAD</td>
</tr>
<tr>
<th>SATURDAY</th>
<td align="center">OOAD</td>
<td align="center">Artificial<br>Intelligence</td>
<td align="center">DAA</td>
</tr>
</table>
</body>
</html>
OUTPUT:
5) Write a javascript to print Armstrong numbers upto n
AIM: To demonstrate Armstrong numbers
PROGRAM:
<html>
<head><title>amstrong</title>
<script language="javascript">
function amstrong(n)
var temp,r,sum;
sum=0;
temp=n;
while(n>0)
r=n%10;
sum=sum+(r*r*r);
n=parseInt(n/10);
if(temp==sum)
document.writeln("<br>" +sum);
</script>
</head>
<body>
<script language="javascript">
var n,i;
n=parseInt(window.prompt("Enter n value"));
for(i=0; i<=n;i++)
amstrong(i);
</script>
</body>
</html>
OUTPUT:
1
153
370
371
407
6) Write a javascript to perform event handling
AIM: To demonstrate a concept of event handling
PROGRAM:
<html>
<head>
</head>
<ul>
<input type="text">
</form>
<li> onMouseover :
<li> onMouseOut
<br> Put your Mouse Out<a href="www.gmail.com"onMouseOut="window.status='you left the
link!';return true">here</a>and then take mouse pointer away<br><br>
<form onSubmit='alert("submitted")'>
<input type="text">
</form>
<br>
<br>
</ul>
</body>
</html>
OUTPUT:
7) Write a javascript to perform string functions
AIM: To demonstrate string functions
PROGRAM
<html>
<head><title>String Functions</title>
</head>
<body bgcolor="yellow">
<h4>
<script language="javascript">
document.writeln("charAt(0) is "+str.charAt(0));
var index=str.indexOf("Program");
index=str.lastIndexOf("is");
</script>
</h4>
</body>
</html>
OUTPUT:
charAt(0) is T
Index of Program is : 26
Index of is :5
The Splitted elements are :Apple,Banana,are,good
substring(1,2) is hi
substring(1,3) is his
Uppercase elements is: THIS IS A STRING FUNCTION PROGRAM
Lowercase elements is: this is a string function program
8) Write a program to demonstrate concept of CSS
AIM: To demonstrate a concept of CSS
PROGRAM: external.css
<html>
<head>
<title>ecss</title>
</head>
<body>
<p>web technologies that relate to the interface between web servers and their clients.
<p>CSS is a stylesheet language that describes the presentation of an HTML (or XML) document.
CSS describes how elements must be rendered on screen, on paper, or in other media.
<p>Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors,
spacing) to Web documents. These pages contain information on how to learn and use CSS and on
available software. They also contain news from the CSS working group. </p>
</body>
</html>
OUTPUT:
INLINE.CSS:
<html>
<head>
<title>Inline</title>
</head>
<body style="background_color:black;">
<form name="f1">
<table align="center">
<tr>
</tr>
<tr>
<td style="color:black;font-weight:bold;">password:</td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
OUTPUT:
EMBEDDED.CSS:
<html>
<head>
<title>Embeded CSS</title>
<style>
body{background-color:purple;}
#n1{color:red;}
.n2{color:blue;}
</style>
</head>
<body>
<p align="center">Login</p>
<table align="center">
<tr>
</tr>
<tr>
<td id="n1">password:</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
OUTPUT:
9) Write a program for date object
AIM: To demonstrate a concept of date object
Program:
<html>
<head>
<script language="javascript">
function hours()
var hours=a.getHours();
if(hours>=5&&hours<12)
document.writeln("Good morning");
else if(hours>=12&&hours<17)
document.writeln("Good afternoon");
else if(hours>=17&&hours<21)
document.writeln("Good evening");
else
document.writeln("Good night");
</script>
</head>
<body>
<script language="javascript">
hours();
</script>
</body>
</html>
OUTPUT:
Good Morning
Good aftrnun
Good evening
Good night
10) Write a program for sorting of arrays
AIM: To demonstrate a concept of sorting arrays
PROGRAM:
<html>
<head>
<title>Sorting</title>
</head>
<body>
<script language="javascript">
var i,j,n,t;
n=parseInt(window.prompt("enter n value"));
for(i=0;i<n;i++)
a[i]=parseInt(window.prompt("enter a value"));
for(i=0;i<n;i++)
for(j=i+1;j<n;j++)
if(a[i]>a[j])
t=a[i];
a[i]=a[j];
a[j]=t;
for(i=0;i<n;i++)
document.writeln("<br>"+a[i]);
</script>
</body>
</html>
OUTPUT:
output:
9
11)Write a php program using session variables
AIM: To set session variables in php and access session variables
PROGRAM: DEMO1.PHP
<body>
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
$_SESSION["favcolor"] = "green";
$_SESSION["favanimal"] = "cat";
?>
</body>
</html>
<body>
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<body>
<?php
?>
</body>
</html>
<html>
<body>
<?php
$cookie_name = "user";
?>
<html>
<body>
<?php
if(!isset($_COOKIE[$cookie_name])) {
} else {
?>
</body>
</html>
OUTPUT: