You are on page 1of 2

Code

Updated: 01/18/2023 by Computer Hope

Code may refer to any of the following:

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. 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/perl
print "Hello World!\n";

Related information

Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
How to view the HTML source code of a web page.
How to create a computer program.

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.

Also see: Codename, Computer abbreviations, Programming terms, Source code

Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com

You might also like