You are on page 1of 8

LOVELY PROFESSIONAL UNIVERSITY

ASSIGHMENT ON
WEB PROGRAMMING
ASSIGNMENT NO 1

NAME PIYUSH MISHRA


SECTION E2801
ROLL NUMBER A10
REGISTRATION NO 10806397
B.TECH(IT)MBA
Q1: Which is the best method of Internet connectivity with respect to reliability? Justify your answer.
Answer
Satellite internet connection is a latest method of broadband access, ideal for areas where land-based
internet access is not feasible (such as boats). Though expensive, it happens to be the only way of
getting internet access at comparable speeds in rural areas. To have satellite Internet access, all you
need is a clear view of the southern sky. Good satellite Internet reception depends upon
unobstructed line of vision to the south. Therefore, your residing area makes a significant
difference while choosing a high speed Internet service.
When considering only high-speed satellite Internet access as your connection choice, you need to
compare different service providers and educate yourselves on the possible advantages and
disadvantages.
Advantage
When it comes to selecting the best satellite Internet service, you have to strike a balance between:
• Total expenditure for your connection
• Preferred speed of your connection
• Reliability and stability of your connection.

Q2: What is the need of protocol? In which situation we prefer FTP over HTTP? Give support your
answer.

The need for a protocol


A set of rules is needed for any means of communication:
Human intercommunication (in pairs or larger groups) requires rules of conversation (do not speak if
someone else is speaking) to function effectively.
Computers are no different. Consider the following simplistic analogy:
Two computers connected via a single connection -- Imagine two people talking via two tin cans
connected via piece of string:
If the two people talk at the same time then we get what is known (in networking terms) as data
collision.
Therefore, we need regulations and rules to how we communicate over a computer network. For
example to remote login (telnet) , FTP or email.
The set of rules and regulations is called a Protocol.
The situation in which FTP is preferred then HTTP is following:
1. FTP has a notion of file format so it can transfer the data as ascii or binary where HTTPO
always send things binary.
2. HTTP Provides metadata with files, content type which clients use but FTP has no such things.
3. FTP supports for requesting multiple files to get transfer in parallel using same control
connection. but HTTP support control sent the file sequentially.
4. FTP involves the client sending commands to which the server responds. a single transfer can
involves quite a serial of commands .HTTP transfer are primary , just one request and one
response
Q3: Elaborate the communication between Web Browser and Web Server while serving static as well
dynamic web pages.
Answer
To communication over remote location, we use web media. These web media can be either audio or
video or simple text . it may be hypertext also called web pages. if two machine communicate over
network via WebPages than in two machine ,one is called client and other is called server.
CLIENT SERVER ARCHITECTURE
The client–server model of computing is a distributed application structure that partitions tasks or
workloads between the providers of a resource or service, called servers, and service requesters,
called clients Often clients and servers communicate over a computer network on separate
hardware, but both client and server may reside in the same system. A server machine is a host that
is running one or more server programs which share their resources with clients. A client does not
share any of its resources, but requests a server's content or service function. Clients therefore
initiate communication sessions with servers which await (listen for) incoming requests.
Client – client is a local machine which request another machine for web content . to getting the
web content of requirement , the number of client can connect to any central machine in order to
form a specific network . it may be star , ring ,bus, hybrid .
Server
In information technology, a server is a computer program that provides services to other computer
programs (and their users) in the same or other computers.
In the client/server programming model, a server is a program that awaits and fulfills requests
from client programs in the same or other computers. A given application in a computer may
function as a client with requests for services from other programs and also as a server of requests
from other programs.

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.

Figure 1: Publishing files on the Internet

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>

=========================================================================

You might also like