1. In general, a source is the location from which information is gathered. For example, if you were copying information from a CD to a computer the CD is considered the source and the computer is the destination.
2. When referring to computer programming or a software program, 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.
3. With hardware, the source is a part of a transistor where an electrical current flows when the transistor is closed.
4. 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.
Note: 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.