Professional Documents
Culture Documents
Q1) Create a HTML Form which uses hyperlinks, text formatting to display static data
about a Hotel.
<html>
<h1 align="center" title="5 Star Rated"> Djatoxd *****Hotel</h1>
</html>
Q2) Can we access a website without using WWW? If yes how we achieve it?
Yes we can access a website without using the WWW. We can achieve a website for Ums
of LPU. We can directly type with http:\ \172.19.2.250. similarly we can access any website
with Http:\\ IP address.
Q3) Is the processing of a wb page dependent on Web Browser? If yes how? If no then
does web browser has any impact on how page is shown, If yes what is the impact &
why?
Although browsers are primarily intended to access the World Wide Web, they can also be
used to access information provided by Web servers in private networks or files in file
systems. Some browsers can be also used to save information resources to file systems.
The primary purpose of a web browser is to bring information resources to the user. This
process begins when the user inputs a Uniform Resource Identifier (URI), for example
http://en.wikipedia.org/, into the browser. The prefix of the URI determines how the URI will
be interpreted. The most commonly used kind of URI starts with http: and identifies a
resource to be retrieved over the Hypertext Transfer Protocol (HTTP). Many browsers also
support a variety of other prefixes.
Part-B
Q 4 Create a HTML Form which acts as registration form a customer when it visits
website of a organization.
<html>
<head>
<title>customer registration form</title>
<script language="javascript">
function ver(form1)
{
v=form1.elements.length;
if(form1.elements[3].name=="button1")
{alert('first form name:'+document.forms[0].name);
{alert('no of form elements of:'+document.forms[0].name+'='+v);
}
else if(form1.element[4].name=="button2")
{alert('second form name:'+document.forms[1].name);
{alert('no of form elements of:'+document.forms[1].name+'='+v);
}
for(i=0;i<v;i++)
alert(form1.elements[i].name+'+is at position+i');
}
</script></head>
<body>
Q5) Create an HTML form that interacts with the user. On this form, collect the first
name, last name, and birth date. After its captured, display this information back to the
user.
<html>
<head>
<title> user</title>
<body>
Q6) Create HTML Form to enter details of a student & get it result displayed using
tables.
<html>
<head><title>Registration Form</title></head>
<body>
<marquee height=70 bgcolor="red" behavior="scroll" ><font size=15 color="Black" >
Lovely Professional University</marquee></font>
<hr></hr>
<center><h1>Student Registration</h1></center>
<hr></hr>
<body bgcolor="white">