You are on page 1of 5

Homework Title / No PART-1 Course Code: 1404

Course Instructor: Pr.Rishi Course Tutor (if applicable):

Date of Allotment: 21Aug, 2010. Date of submission: 28Aug, 2010.

Student’s Roll No.Rtb012A01 Section No. : Tb012.

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>

<hr pixel="123" width= 20% align=center></hr>


<marquee direction="left"> <font size="20"><font color= "white">Holiday In</marquee>
</font>
<body bgcolor= "pink">
<hr pixel="123" width= 50% align=center></hr>
<B><ul><u>Hotel Facilities</u><li> 24hour service<li>fooding<li>lodging<li>transporst
facilities</ul>
<sub>Royal Hotel "5 Star hotel"</sub>
<br><blink> HURRY </blink></br>
<pre><font size=4 color="black" > <b>
First Name : <input type="text" Name="FirstName" ><br>
Last Name : <input type="text" Name="LastName" ><br>
Sex : <input type="radio" Name="sex"
value="male">Male <input type="radio" Name="sex" value="female">Female<br>
Address : <input type="text" Name="Address" ><br>
Phone No : <input type="text" Name="PhoneNo" ><br>
E-Mail : <input type="text" Name="Email" ><br>
Country : <input type="text" Name="Country" ><br>
State : <input type="text" Name="State" ><br>
City : <input type="text" Name="City" ><br>
ZIP Postal Code : <input type="text" Name="Zipcode" ><br>
Pass Word : <input type="text" Name="Password" ><br>
</pre>
<b><a href="http://www.royalhotel.com">HOTEL</b> </a>
</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?

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>

<form name:"Customer Registration">


customer form:<i><b>Customer Registration</i></b><br<br>
First Name:<Input name="text1" type="text" value=""><br><br>
Last Name:<Input name="text1" type="text" value=""><br><br>
Sex: <Input name="radio1" type="radio" value="">male

<Input name="radio2" type="radio" value="">female


<br><br>

address:<Input name="text1" type="text" value=""><br><br>


Date of birth:<Input name="text1" type="text" value=""><br><br>
Nationality:<Input name="text1" type="text" value=""><br><br>
<Input name="button1" onclick="ver(form1)" type="button" value="PRESS">
</form>
</body>
</html>

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">

<form name:"User Information">


<b>User</b><br<br>
First Name: <Input name="text1" type="text" value=""><br><br>
Last Name: <Input name="text1" type="text" value=""><br><br>

Sex: <Input name="radio1" type="radio" value="">male

<Input name="radio2" type="radio" value="">female


<br><br>

address: <Input name="text1" type="text" value=""><br><br>


Qualification: <select>
<option>M.sc.CS</option>
<option>MCA</option>
<option>BCA</option>
</select><br><br>

Date of birth: <Input name="text1" type="text" value=""><br><br>


Nationality: <Input name="text1" type="text" value=""><br><br>
Country: <select>
<option>India</option>
<option>Banglaesh</option>
<option>UK</option>
</select><br><br>

<Input name="button1" onclick="" type="button" value="PRESS ME">


</form>
</body>
</html>

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>

Last Name : <input type="text" size="35"


Name="LastName" ><br>
Father Name : <input type="text" size="35"
Name="FatherName" ><br>
Class : <input type="text" size="35" Name="class"
><br>
Birhday : (dd-mm-yyyy) <input type="text" size="35"
Name="Birthday" ><br>
Sex : <input type="radio" Name="sex"
value="male">Male <input type="radio" Name="sex" value="female">Female<br>

Address : <input type="text" size="35"


Name="Address" ><br>
Phone No : <input type="text" size="35"
Name="PhoneNo" ><br>
E-Mail : <input type="text" size="35" Name="Email"
><br>
Country : <input type="text" size="35"
Name="Country" ><br>
State : <input type="text" size="35" Name="State"
><br>
City : <input type="text" size="35" Name="City"
><br>
ZIP Postal Code : <input type="text" size="35"
Name="Zipcode" ><br>

<table border=5 width=50%>

<tr><th>Studentinfo.</th><th>Stream</th><th>Board</th><th>Percentage</th>

</tr>
<td> 10+2 </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>

<tr>

<td>Graduation </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<tr> <td> Post Graduation </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td></form></table>

<a href="submit.html" align="right">SUBMIT</a>


</b> </font></pre>

</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>

You might also like