Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
HTML elements form the building blocks of HTML pages. HTML allows images
and other objects to be embedded and it can be used to create interactive
forms. It provides a means to create structured documents by denoting
structural semantics for text such as headings, paragraphs, lists, links,
quotes and other items. HTML elements are delineated by tags, written using
angle brackets. Tags such as <img /> and <input /> introduce content into
the page directly. Others such as <p>...</p> surround and provide
information about document text and may include other tags as subelements. Browsers do not display the HTML tags, but use them to interpret
the content of the page.
HTML can embed scripts written in languages such as JavaScript which affect
the behavior of HTML web pages. HTML markup can also refer the browser to
Cascading Style Sheets (CSS) to define the look and layout of text and other
material. The World Wide Web Consortium (W3C), maintainer of both the
HTML and the CSS standards, has encouraged the use of CSS over explicit
presentational HTML since 1997.
FTP is probably the most used resource on the Internet. It is a protocol which
allows users on computer to transfer files to another computer or we can say
to exchange files over the Internet. FTP works in the same way as HTTP
(Hypertext Transfer Protocol) for transferring Web pages from a server to a
user's browser and SMTP for transferring electronic mail across the Internet
in that, like these technologies, FTP uses the Internet's TCP/IP protocols to
enable data transfer.
When you take a file from a remote machine down to your own machine, it is
called a download. When the opposite happens and you place a file on a
remote machine, it is called an upload. FTP is most commonly used to
download a file from a server using the Internet or to upload a file to a
server.
d) SMTP (Simple Mail Transfer Protocol)
Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic
mail (email) transmission. First defined by RFC 821 in 1982, it was last
updated in 2008 with the Extended SMTP additions by RFC 5321which is
the protocol in widespread use today. SMTP by default uses TCP port 25. The
protocol for mail submission is the same, but uses port 587. SMTP
connections secured by SSL, known as SMTPS, default to port 465
(nonstandard, but sometimes used for legacy reasons). Although electronic
mail servers and other mail transfer agents use SMTP to send and receive
mail messages, user-level client mail applications typically use SMTP only for
sending messages to a mail server for relaying. For retrieving messages,
client applications usually use either POP3 or IMAP.
DHTML sites are dynamic in nature. DHTML uses client side scripting to
change variables in the presentation which affects the look and function of
an otherwise static page. DHTML characteristics are the functions while a
page is viewed, rather than generating a unique page with each page load (a
dynamic website).
On the other hand, HTML is static. HTML sites rely solely upon client-side
technologies. This means the pages of the site do not require any special
processing from the server side before they go to the browser. In other
words, the pages are always the same for all visitors - static. HTML pages
have no dynamic content.
Advantages of DHTML
1. Supported by all browsers: DHTML is supported in every major
browser, including Opera, Safari, Internet Explorer, and Firefox.
2. Open standards: You can create your pages according to the
standardized technologies of DHTML and you can expect that, they will
display much the same on any major browser.
3. Small file sizes: Like HTML, we create DHTML with files, which are
smaller than graphic files and generally render faster than alternatives such
as flash and java.
4. Change contents on the fly: When we have loaded our DHTML page
then also we can make the necessary changes to the web page without
having to reload it. This is where the dynamic in DHTML comes from.
What the events are and how they are handled are up to the particular
processor.
c) Tree representation
The tree representation can take many forms, but there are two main types.
i) The first is a simple structure consisting of a hierarchy of node lists. This
is the kind of structure you would find in a non-object- oriented approach.
ii) The other kind is called an object model, where every node is
represented as an object. In a programming phrase, an object is a package of
data and routines in a rigid, cloudy framework. This style is preferred for
large programs, because it minimizes certain types of bugs and is usually
easier to visualize. Object trees are expensive in terms of speed and
memory, but for many applications this is an acceptable trade-off for
convenience of development.
d) Tree processor
The tree processor is the part of the program that operates on the tree
model. It can be anything from a validity checker to a full-blown
transformation engine. It traverses the tree, usually in a methodical, depthfirst order in which it goes to the end of a branch and backtracks to find the
last unchecked node. Often, its actions are controlled by a list of rules, where
7
a rule is some description of how to handle a piece of the tree. For example,
the tree processor may use the rules from a stylesheet to translate XML
markup into formatted text.
is the concatenation operator for strings. By the following program you can
see the function of string operator.
#6.
ASP.
Describe
ANSWER
Introduction of ASP
Active Server Pages (ASPs) are Web pages that contain server-side
scripts in addition to the usual mixture of text and HTML (Hypertext Markup
Language) tags. Server-side scripts are special code that is put in Web Pages
and that code is processed before it is sent to the Web browser of someone
who's visiting your Web site. When we type a URL in the Addressbox or click
a link on a Web page it means we are asking a Web server to send a file to
11
the Web browser on our computer. If that file is a normal HTML file, it looks
exactly the same when your Web browser receives it as it did before the Web
server sent it. After receiving the file, your Web browser displays its contents
as a combination of text, images, and sounds.
How ASP Works?
Following are some steps that will help us to know about ASP working:
1. The user brings up a Web site where the default page has the extension
.asp.
2. The browser requests the ASP file from the Web server.
3. The server-side script begins to run with ASP.
4. ASP processes the requested file sequentially (top-down), executes any
script commands contained in the file, and produces an HTML Web page.
5. The Web page is sent to the browser.
Because our script runs on the server, the Web server does all of the
processing and standard HTML pages can be generated and sent to the
browser. This means that our Web pages are limited only by what our Web
server supports. Another benefit of having our script reside on the server is
that the user cannot "view source" on the original script and code. Instead,
the user sees only the generated HTML as well as non-HTML content, such as
XML, on the pages that are being viewed. Following figure 13.1 shows the
working of ASP page.
can insert server-side scripts anywhere in your Web page--even inside HTML
tags.
13