You are on page 1of 6

Assighnment no:-

4
Web programming
CSE-214

Submitted to: Submitted by:


Satinder saini sir Ankur singh
Roll no:- Re3801a29
Reg no:-10800943
Class:-B.C.A-M.C.A
Code:-214
Homework No. 4
CAP214 : Fundamentals of Web Programming
DoA: 25/11/09 DoS: 9/12/09

Part A
1. What is the significance of a form & the attributes used in form tag? Design a
feedback form for Pizza Hut customers.

Ans-Form act as container for the controller in the html(handle the program).html form helps to
capture the user input and process this input while creating the interactive web sites.html forms
are significant for data gathering functionality to a web pages.forms can automatically submit
data in its control to a web server.
The attributes used in form tag are text,text area,check boxes,butons,radio
buttons,hidden.these attributes are significant for capturing the user input.the arrays created by a
javascript enabled browser and javascript code all form attributes are accessible.these form
attributes are used for refrencing the object in future when that is required.

<html>
<head>
<title>Ankur</title>
</head>
<body bgcolor="#FF9900">
<hr noshade="noshade"><center><font face="Lucida Sans Unicode, Lucida Grande, sans-serif"
size="+6">
Pizza Hut</font></center><hr noshade="noshade"><hr noshade="noshade">
<font face="Lucida Sans Unicode, Lucida Grande, sans-serif">
<p>Name:-
<input type="text" name="Name" id="Name" />
</p>
<p>Contact no:-
<input type="text" name="textfield" id="textfield" />
</p>
<p>How you like the food?</p>
<font><center>
<p>Good
<input type="checkbox" name="checkbox" id="checkbox" />
Satsifactory
<input type="checkbox" name="checkbox3" id="checkbox3" />
Bad
<input type="checkbox" name="checkbox2" id="checkbox2" />
</center>
</font></label>
<p>Rate the Quality which is good about Hotel</p>
<form id="form1" name="form1" method="post" action="">
<p>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_0" />
Checkbox</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_1" />
Food</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_2" />
Service</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_3" />
Do u like to come once again</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_4" />
Employee behaviour</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_5" />
Cleaniness</label>
<label>
<input type="checkbox" name="Pizza Hut" value="checkbox" id="PizzaHut_6" />
Ventilation</label>
</p>
</form>
<p>&nbsp;</p>
<p>Comment:-
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
</p>
<p>
<input type="submit" name="Submit" id="button" value="Submit" align="middle" />
<input type="Reset" name="button2" id="button2" value="Reset" />
</p>
</body>
</html>

2. How would you add following contents to a web page?

a) Submit button

b) Radio button

c) Button

d) Pull down menus


e) Pop ups

Ans-SUBMIT BUTTON-we are able to submits the current data held in eah data aware,form
elementsto a web server for the further processing by using the submit button.by using the
input tag we are able to add the submit button

<INPUT name=”button_submit” type=”submit” value=”SUBMIT DATA”>

b)RADIO BUTTON-radio buttons indicates the status of the object whether checked or
unchecked.we can add the radio buttons in forms by using the input tg.

<input type=”radio”>

c)BUTTON-buttons are elements that provide the button ther than submit or reset

<input type=”button”>

d)POP DOWN MENUS-pop down menus are esigned to easily customized to match your
sites look and feel.

e)POP UPS MENUS-You can assign such a menu to any event of an object on
mouseover, on click, on double click, instead of a standard menu of a browser.

Ques 3- How can you add frames in HTML?

Ans-we are able to add the frames in html document. The <frameset> tag is used to add the
frames into the html document.the <FRAMESET> tag is used for how to divide the window
into the frames. the <FRAMESET > tag divides the screen into rows and columns. it can be
set equal to the list of the values.

Example-<FRAMESET rows=”35%.35%,30%”>

<FRAMESET cols=”40%,60%”>

</FRAMESET>

The <.FRAME > tag is used for what html document to put
into each frames.it helps to add the document into frame.

Example-

<FRAME src=”filename.html”>
Part B

4 How can you create a counter in a web page?

Ans-we are able to create a counter in aweb pages in many ways.the users who have the
Microsoft front page and have the web pages that support the extension of the front page
are able to create the web pages with included components of the web pages.by using the
perl script or php we are also able to create the counter for the web pages.hence when the
the counter is created we are able to give the effects like give the background to the
counter or provide the digital colors to the web pages.

5. Differentiate between XML and HTML.

Ans- HTML XML

1)html is static langage used to develop the 1) XML is dynamic language used to

Web pages to create the interactive web pages.

2)we cannot define our own tags in html. 2)we are able to define our own tags in

Xml.

3)HTML is used to display the information. 3)XML is used describe the

information

4)html tags are predefined 4)xml tags are not predefined.

5) Html is hypertext markup language 5)xml is extensible markup language.

6. What is DOM and how does it relate to XML?

Ans-document object model is an programming interface between the html and xml
documents.document object model enables browsers identify the collection of web pages objects
that have to be dealt with the while rendering an html based web pages in the browser window.

Document object model provides the way for accessing or


modifying the xml documents.it provides an interface for serializing the documents as extensible
markup language.docment object model manage the data collected in the extensible language.

You might also like