What is coding


What does ‘coding’ mean?


Grammar is a form of coding, regardless which spoken/written language it pertains to. All languages have grammatic rules and syntax.

I before E except after C

is a syntax rule. Capitalization, comma breaks, phrase separaters, full stops and punctuation are all syntax rules that apply to written text. When we write a sentence or paragraph or essay we are in a sense coding in the language we communicate in, following the syntactical rules that have evolved with it.

But more to the point of the question, coding is composition of a markup document, a style sheet, a script, or a program depending upon the technical language that applies in each case.




The above is HTML markup code used to structure a web document.

body {
    font-size: 100%;
    color: black;
    background: white;
    margin: 0;
    padding: 0;

The above is a style sheet coded in CSS and used to control presentation of the document.

var b = document.querySelector('body');
var p = document.querySelector('p');
b.style.color = 'red';
p.style.color = 'teal'
p.innerHTML = b.style.cssText;    // -> color: red;

The above is a script coded in JavaScript, the native script language of a browser.

All of the above adhere to a fairly strict, and possibly rigid, set of syntax rules. This is just a scratch on the full range of coding possibilities.

Writing code in any language is a form of coding.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.