Working Principle of Web Server
Web server is defined as the special software that runs the various computers serving data & information. It is served from the fixed locations. Some of the examples of web servers are Apache, Internet information server, etc. The various internet browsers we use in current days communicate with a web server. There is a special procedure in which a browser communicates with a web server.First of all, the connection is established to make a link between a web server and a web browser using transmission control protocol/ internet protocol.
Here, a domain address or internet protocol address is used. After that, the client requests for a certain page or web address and the server responds. If a certain page or link is not available then the server responds with a suitable error message.
Finally, the connection is terminated. That means, both the client and server close the current page or link or web address.
The web is made attractive to attract the maximum number of clients. There are various basic needs for designing such an attractive web page. They are Scripting language, Cascading style sheet, HTML and styling documents, etc. HTML stands for hypertext markup language which describes the overall structure of a web page. Another important item is script language where various script languages like JAVA script or Vb Script is used. Cascading style sheets are used to make a page design attractive. Overall, we must say that HTML, Cascading style sheets and Script languages are the basic elements for modern websites.
Advantages and benefits of JAVA script
1. It does not require any compilation steps as it is an interpreted language. It is used in modern websites as a basic page element.2. In a website, it is embedded within HTML (hypertext markup language). That means JAVA script does not require any extra editor.
3. As it does not require any time-consuming compilation, therefore it is easy and quick to develop. Hence, the script can be developed in a short period of time.
4. It is mainly created for small and simple programs.
5. The JAVA script is easy to learn because it has a minimal number of syntax. Therefore, only a few commands are used and there are only simple rules of syntax.
6. In JAVA script, the hypertext markup language files are compact and small which minimizes the storage capacity in a web server. As a result, the download time for a client is very less.
7. The JAVA script support object-based programming. Therefore, it is designed for programming user events.
8. It has a smooth procedural capability as it provides looping and branching to a web page coding.
9. One of the main advantages of JAVA script is that it has platform independence. That means it is used on any machine that supports JAVA script enabled browser installed.
10. The JAVA script is easily debugged and tested. The various errors are listed when tested line by line and thus it is easy to point errors and test them without any difficulties.