1. Home
  2. Computing & Technology
  3. Web Design / HTML

Types of Web Files - Scripts
What Do All Those File Types Mean?

By , About.com Guide

Scripts are files that activate dynamic actions on Web sites. There are many types of scripts. These are just a few that are fairly comon on Web sites.

.cgi
CGI stands for Common Gateway Interface. A .cgi file is a file that will run on the Web server and interact with the Web user. CGI files can be written with many different programming languages, like Perl, C, Tcl, and others. A CGI file does not have to have the .cgi extension, you might also see them in /cgi-bin directories on Web sites.

.pl
This indicates a Perl file. Many Web servers will run a .pl file as a CGI.

.js
A .js file is a JavaScript file. You can load your JavaScript files into the Web page itself, or you can write it in an external file and load it from there. If you write your JavaScript into the Web page you won't see the .js extension, as it will be part of the .html file.

.java or .class
While you probably won't come across a .java or .class file on a Web page, these files are often used to generate Java applets for Web pages.

There are many other types of script and program files as well that you might see on Web pages.

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. About.com Web Design A to Z
  5. Books
  6. About Web Design Book
  7. AWD: Chapter 2
  8. Types of Web Files - Scripts>

©2009 About.com, a part of The New York Times Company.

All rights reserved.