This sentence has all the proper words, but when they are out of order the meaning is either unclear or indecipherable. Other factors that can affect understanding are punctuation and capitalization. When the words are put in the proper order, punctuation is in the right place, and capitalization is correct, the sentence becomes meaningful and conveys the intended message. This is the heart of syntax. You must use the proper words in the proper order following the proper construction rules in order to be understood.
Computer languages are no different.
Elementary Syntax Believe it or not, the syntax rules followed by computers are not nearly as complex as those followed in human language. They simply won't understand what is meant. Most programming statements consist of one or two keywords, followed by one or more arguments. In some instances, there will also be an operator indicating exactly what is to take place. The number of keywords and operators is quite limited, but the arguments available can be quite extensive.