What is the difference between Syntax and Grammar?

I've read the answers on what syntax is, but it sounds similar to what grammar is. What is the difference actually? I'm doing an essay to analyze language used in advertisements but I'm practically stuck in analyzing it from the syntactic aspect.
3 answers 3