|S.No||Active web document||Dynamic web document|
|1.||An active web document is a document where the browser performs the logic instead of the server.||A dynamic web page is a page where the server performs the logic instead of the browser.|
|2.||Active web documents are downloaded in the client environment and then run.||Dynamic web page runs on the server and then the result is sent to the user.|
Role of CGI :
1. It helps to create and handle dynamic documents.
2. It acts as a gateway for accessing other resources such as databases.
3. It provides sets of standards for the web document.