Code may refer to any of the following:
- 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. Code is also be used less formally to refer to text written for markup or styling languages, like HTML 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.
#!/usr/bin/perlprint “Hello World!\n”;
- With a word processing document, code may refer to the formatting marks that help format the overall presentation of a document.
Related information
- How to view the HTML source code of a web page.
- How to create a computer program.
When writing in HTML, the
tag designates that a section of text is computer code.
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