web page is a document available on world wide web. Web Pages are stored on web server and can be viewed using a web browser.
A web page can cotain huge information including text, graphics, audio, video and hyper links. These hyper links are the link to other web pages.
Collection of linked web pages on a web server is known as website. There is unique Uniform Resource Locator (URL) is associated with each web page.
Static Web page
Static web pages are also known as flat or stationary web page. They are loaded on the client’s browser as exactly they are stored on the web server.
Such web pages contain only static information. User can only read the information but can’t do any modification or interact with the information.
Static web pages are created using only HTML. Static web pages are only used when the information is no more required to be modified.
Dynamic Web page
Dynamic web page shows different information at different point of time. It is possible to change a portaion of a web page without loading the entire web page. It has been made possible using Ajax technology.
Server-side dynamic web page
It is created by using server-side scripting. There are server-side scripting parameters that determine how to assemble a new web page which also include setting up of more client-side processing.
Client-side dynamic web page
Scripting languages are like programming languages that allow us to write programs in form of script. These scripts are interpreted not compiled and executed line by line.
Scripting language is used to create dynamic web pages.
Client-side scripting refers to the programs that are executed on client-side. Client-side scripts contains the instruction for the browser to be executed in response to certain user’s action.
Client-side scripting programs can be embedded into HTML files or also can be kept as separate files.
Following table describes commonly used Client-Side scripting languages:
|S.N.||Scripting Language Description|
It is a prototype based scripting language. It inherits its naming conventions from java. All java script files are stored in file having .js extension.
|2.||ActionScriptIt is an object oriented programming language used for the development of websites and software targeting Adobe flash player.|
Sever-side scripting acts as an interface for the client and also limit the user access the resources on web server. It can also collects the user’s characteristics in order to customize response.
Following table describes commonly used Server-Side scripting languages:
|Sr.No.||Scripting Language Description|
Active Server Pages (ASP)is server-side script engine to create dynamic web pages. It supports Component Object Model (COM) which enables ASP web sites to access functionality of libraries such as DLL.
It is similar to PHP and also used for creating dynamic web pages. It uses native Visual Foxpro language and database.
It is used to develop dynamic websites, web applications, and web services.
Java Server Pages are used for creating dynamic web applications. The Java code is compiled into byte code and run by Java Virtual Machine (JVM).
It supports multiple programming paradigms such as object-oriented, and functional programming. It can also be used as non-scripting language using third party tools such as Py2exe or Pyinstaller.
It is also a server-side scripting language with an embedded database system.
Static vs Dynamic website
|Static Website||Dynamic Website|
|Prebuilt content is same every time the page is loaded.||Content is generated quickly and changes regularly.|
|It uses the HTML code for developing a website.||It uses the server side languages such as PHP,SERVLET, JSP, and ASP.NET etc. for developing a website.|
|It sends exactly the same response for every request.||It may generate different HTML for each of the request.|
|The content is only changed when someone publishes and updates the file (sends it to the web server).||The page contains “server-side” code which allows the server to generate the unique content when the page is loaded.|
|Flexibility is the main advantage of static website.||Content Management System (CMS) is the main advantage of dynamic website.|
Static vs Dynamic Web Pages:
|Sr.No.||Static Web Page||Dynamic Web Page|
|1.||In static web pages, Pages will remain same until someone changes it manually.||In dynamic web pages, Content of pages are different for different visitors.|
|2.||Static Web Pages are simple in terms of complexity.||Dynamic web pages are complicated.|
|3.||In static web pages, Information are change rarely.||In dynamic web page, Information are change frequently.|
|4.||Static Web Page takes less time for loading than dynamic web page.||Dynamic web page takes more time for loading.|
|5.||In Static Web Pages, database is not used.||In dynamic web pages, database is used.|
|7.||Static web pages does not contain any application program .||Dynamic web pages contains application program for different services.|
|8.||Static web pages require less work and cost in designing them.||Dynamic web pages require comparatively more work and cost in designing them.|