Updated: 01/18/2023 by Computer Hope

Code may refer to any of the following:

Computer programming

1. Code (short for source code) describes text written using a programming language by a computer programmer. Examples of programming languages include C, C#, C++, Java, Perl, and PHP (PHP: Hypertext Preprocessor). Code is also be used less formally to refer to text written for markup or styling languages, like HTML (hypertext markup language) and CSS (cascading style sheets). For example, you may see people refer to code in numerous languages, such as "C code," "PHP code," "HTML code," or "CSS code."

An example of C# scripting code that prints "Hello, World!" to the screen is displayed below.

public class HelloWorld
 public static void Main()
  System.Console.WriteLine("Hello World!");

Below is an example of Perl scripting code that prints "Hello World!" to the screen.

print "Hello World!\n";

2. With a word processing document, code may refer to the formatting marks that help format the overall presentation of a document.

3. When writing in HTML, the <code> tag designates that a section of text is computer code.

4. When describing a hardware identification number, a code may refer to a serial number or model number. With software, a code refers to the activation code.

Codename, Computer abbreviations, Programming terms, Source code