Source may refer to any of the following:

  1. In general, a source is the location from which information is gathered. For example, if you copied CD information to a computer the CD is considered the source and the computer is the destination.

  2. When referring to computer programming or software, source or source code refers to the code used to create the program. See our code definition for full information on this term and related links.

The file containing the source code is sometimes called a source file.

  1. With hardware, the source is a part of a transistor where an electrical current flows when the transistor is closed.

  2. When referring to a website, the source or HTML source code is the HTML or other code used to generate a web page on a browser. Any code that is not server-side can be viewed by anyone who visits your site.

  3. Source can also be abbreviated as src, and is an attribute used with many HTML tags. The following example shows it in use with the element.

The source code for server-side scripts written in languages like Perl and PHP cannot be viewed. When you look at the source of a script, you are only able to see the HTML generated by the script, not the script itself.

When viewing the source code of a web page “view-source:” is shown in front of the URL.

  • How to view the HTML source code of a web page.
  • Is it possible to make the HTML source not viewable?
  • How to view the HTML source code in Microsoft Word.
  1. When referring to an HTML tag, the tag is used to designate additional media resources for the

  2. In the bash shell, the source builtin command loads and executes a shell configuration file. For more information, see our source bash builtin command reference.

Computer abbreviations, Destination, Electronics terms, Program listing, Programming terms, Trusted source