A Common Gateway Interface (CGI) is a standard for web servers to interface with executable programs that are installed on a server and designed to generate web pages dynamically.
These programs are known as CGI scripts and are usually written with a scripting language, however, they can be written in any programming language.
CGI also coming refers to Computer-generated imagery, this is the application of computer graphics to create or contribute to images in art, printed media, video games, films, television programs, commercials, videos, and simulators.