Questions related to teaching about programming language syntax. Use this tag to ask about teaching the usage of correct syntax or to ask questions involving it.

Syntax is the set of rules by which a programmer must abide. Each programming language has it's own syntax, though some languages share syntax.

Code that doesn't abide by the syntax will cause errors during compile. This is known as a Syntax Error.

The syntax might define keywords, which have a specific meaning and usage. Most programming languages treat the word for as a keyword which identifies a for loop. Using a keyword as a name for variables is a syntax error.

Teaching the use of correct syntax as early as possible is very important.

More information on Syntax can be found in the Wikipedia article for Syntax.