Okay, so syntax is sometimes called grammar, but the word grammar is also used more broadly to refer to various aspects of language and its usage. In traditional grammar syntax, a sentence is analysed as having two parts, a subject and a predicate.
Syntax refers to word order, and the way in which it works with grammatical structures. As we are used to hearing things in certain orders, the effect of breaking with normal syntax is to draw attention to what is being said and the way it is.
Now Alternative Syntax: is for its control structure; namely, if, while, for, for each, and switch. In each case, the basic for of alternative syntax is to change the opening brace to a colon ( : ) and the closing brace to end if;, endwhile;, endfor; endforeach;, or endswitch; respectful y
I hope I could help, that's all I really know about it, so if you need some more help, you should probably ask your teacher. :) have a great day.