Professional Documents
Culture Documents
ASSIGHMENT ON
WEB PROGRAMMING
ASSIGNMENT NO 1
Q2: What is the need of protocol? In which situation we prefer FTP over HTTP? Give support your
answer.
Working
when client make a request to server regarding web content then the request hit to server . Server
first search the script associated with the required web page . after that server load the script to
language modular fixed at server side (a additional program used to execute the script code to
effective html content of web pages . it may depend upon the script language used at server , it
may be php modular, .net modular).this modular convert the scriptr of page into html content. This
html send to client side . the html code execute that is browser run the html content at client side
and generate the effective and actual content of web page.
PART-B
Q4: Consider a case that you have developed a website, now you want to publish it on the web. Outline
the procedure being followed by you to publish the same using FTP?
Answer
Uploading web pages to the Internet makes them accessible to Internet users.
You normally create the Website in a folder located on your local computer.
Uploading or Publishing a web page/pages simply copies the page from your local computer to the
Internet.
Normally you upload a web page/pages using the FTP protocol (file transfer protocol), however most
of the HTML editors have their own in built publishing mechanism, some using FTP, others use their
own proprietary mechanisms.
FrontPage, for example, uses FrontPage Extensions; however, these must also to be supported by the
server, which is not always the case.
Uploading Web Pages -The Process
• When we upload (publish ) a Web page we simply copy the file from a folder on our local
computer to a folder on a computer on the Internet. Our Website is simply a folder containing
files (see website layout). You can upload the pages individually or the entire folder and its
contents can be uploaded in one go.
• Normally when you first create a website, all of the files in the local folder are uploaded to the
Internet server. Subsequent updates are done by uploading individual files/pages to either
replace existing ones or to add to the site content.
Q5: Comment on the statement that Logical formatting tags are always preferred over Physical
formatting tags for use in web pages.
Answer
there are two different way to provide the style to information which the web content is describe
Physical formatting tags
HTML provides two general ways to apply formatting to text. The first group of formatting tags is
collectively known as physical markup tags. This type of tag gets its name because it indicates a
specific change in appearance. Bold and italic tags, for example, are known as physical markup
tags because they directly specify how the text should appear on screen.
Example
• To create strike-through text, which is text with a single horizontal line running through it, use
the <STRIKE> and </STRIKE> tags.
• To create bold text, insert <B> and </B> tags. Any text falling between these two tags will
appear in boldface type.
• Logical formatting tags
On the previous page, you learned how to specify the appearance of text using physical markup
tags. However, there is a second method for formatting text-through the use of logical markup tags,
sometimes known as information style elements.
Logical tags take the approach that what's really important is the type of information being
displayed, rather than exactly how it is displayed. Logical tags leave the actual appearance decisions-
such as whether to display text in boldface, italics, or larger sizes-up to the browser (and ultimately the
reader).
Example
• If a particular section of text is very important, you can mark it with strong emphasis by
using the <STRONG> and </STRONG> tag pair. Most browsers tend to display strongly
emphasized text in boldface.
• The <CODE> and </CODE> tags indicate that the text is to be presented as an example of
programming code. In most browsers, this text will be displayed in a monospaced font, such
as Courier. The <CODE> tags are used extensively in interactive computer manuals.
Q6: Formulate a HTML code to list the items in the menu card of a restaurant. Use appropriate
assumptions and also make use of various Tags and Attributes available?
Answer
<html>
<head>
<title>
home restorent</title>
</head>
<body background="C:\Users\sunny\Documents\fun arena\WALLPAPER\MERE
APNE\101NIKON\DSCN0906.JPG">
<p align="center">
<font face="algerian" size="50" color="white"><I>WELCOME TO PIZZA HUT </i></font>
<marquee direction="right" ><font color="red">---------->JUST LIKE HOME</font></marquee>
<font face="times new roman" color="white"> ITEM ARENA <font>
<ol>
<ul type="circle">
<li>non whege
<ol>
<li>CHIKAN TANDOORI
<li>kabaab
<li>chikan kari
<li>chikan soop
<li>biryaani
</ol>
<li>whege
<ol>
<li>shaahi paneer
<li> medu baraa
<li>tandoori roti
<li>chitti chola
</ol>
<li>cold storage
<ol>
<li>coke
<li>DUE
<li>pepsi
<li>thums up
<li>sprite
</ol>
</ul>
<ol>
</body>
<html>
=========================================================================