The documents in the www can be grouped into three broad categories: static, dynamic, and active. The category is based on the time at which the contents of the document are determined.
(1) Static documents: are fixed-content documents that are created and stored in a server. The client can get only a copy of the document. (HTML) Hypertext Markup Language is a language for creating web pages. Web page are formatted by a markup language for interpretation by a browser.
Tags (marks)
//Bold
A web page is made up of two parts the head and the body.
/The head contains the title while the body contains the actual contents of a page.
Every HTML tag is a name followed by an optional list of attributes.
Beginning tag or mark
ending tag or mark.
HREF (hyperlink
(2) Dynamic Documents
A dynamic document is created by a web server whenever a browser requests the document. When a request arrives, the web server runs an application program or a script that creates the dynamic document. The server returns the output of the program or script as a response to the browser that requested the document.
Common Gateway Interface (CGI) is a technology that creates and handles dynamic documents. CGI is a set of standards that defines how a dynamic document is written, how data are input to the program, and how the output result is used. CGI is not a new language: instead, it allows programmers to use any of several languages such as C, C++, Bourne shell, C shell, Tel, or perl. The only thing that CGI defines is a set of rules and terms that the programmer must follow.
Scripting Technologies for Dynamic Documents
The problem with CGI technology is the inefficiency that results if part of the dynamic document that is to be created is fixed and not changing from request to request. If we use CGI, the program must create an entire document each time a request is made. The solution is to create a file containing the fixed part of the document using HTML and embed a script, a source code.
No comments:
Post a Comment