The syntax is the way of writing a code specified by the language. Like many languages requires a semi-colon at the end of the statement, and if not provided, a syntax error is reported by the language.
So it is called the syntax of a programming language, it is checked by the compiler of that programming language.