Grammar is basically the set of rules for the way words are put together to form sentences.
As you have seen in previous sessions, spoken language is more flexible than written language. In fact, everyday communication is becoming more and more informal and regularly breaks the rules. However, for formal or important written pieces you cannot break the rules as much. You have to be careful and accurate.