Professional Documents
Culture Documents
Declaration:
I declare that this assignment is my individual work. I have not copied from any other student’s
work or from any other source except where due acknowledgment is made explicitly in the text,
nor has any part been written for me by another person.
Student’s Signature: Manoj Sharma.
Evaluator’s comments:
_____________________________________________________________________
Marks obtained: ___________ out of ______________________
PART-A
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"> Welcome In Royal Hotel</h1>
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?
A web browser is a software application for retrieving, presenting, and traversing information resources on the World Wide
Web. An information resource is identified by a Uniform Resource Identifier (URI) and may be a web page, image, video, or
other piece of content. Hyperlinks present in resources enable users to easily navigate their browsers to related resources.
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.
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>
<body bgcolor="yellow">
<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 bgcolor="YELLOW">
Q6) Create HTML Form to enter details of a student & get it result displayed using tables.
First File
<html>
<head><title>Registration Form</title></head>
<body BGCOLOR="PINK">
<h1 align="center"> LOVELY PROFESSIONAL UNIVERSITY </h1>
<h1 align="center"> PHAGWARA PUNJAB</h1>
<hr></hr>
<center><h1>STUDENT REGISTRATION</h1></center>
<hr></hr>
<pre><font size=4 color="blue" > <b>
First Name : <input type="text" size="35"
Name="FirstName" ><br>
<tr><th>Studentinfo.</th><th>Stream</th><th>Board</th><th>Percentage</th>
</tr>
<td> 10+2 </td>
<td> </td>
<td> </td>
<td> </td>
<tr>
<td>Graduation </td>
<td> </td>
<td> </td>
<td> </td>
<tr> <td> Post Graduation </td>
<td> </td>
<td> </td>
<td> </td></form></table>
</body>
</html>
Second File
<html>
<body bgcolor="green">
<h1 align="center">LOVELY PROFESSIONAL UNIVERSITY</H1>
<HR> </HR>
<h1 align="center" COLOR="BLUE">YOU ARE REGISTERED IN LPU</H1>
</BODY>
</HTML>