Source

Updated: 06/16/2017 by Computer Hope

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 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.

View source code4. 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.

5. 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 <img> element.

<img src="https://www.computerhope.com/logo.gif">

6.When referring to HTML, the <source> tag is used to designate additional media resources for the <video> and <audio> elements.

Destination, Electronics terms, Program listing, Programming terms