Before learning to write in a spoken language, you must first learn the rules of grammar. Here are a few examples of rules you might find in the English language:
- A sentence starts with a capital letter.
- A sentence ends in a period.
- A new paragraph is indented.
- Spoken dialogue is placed inside double quotation marks.
Similarly, all programming languages must adhere to specific rules in order to function. This set of rules that determine the correct structure of programming languages is known as syntax. Many programming languages consist largely of similar concepts with variations in syntax.