Hey there!
To have good grammar, is to have no grammar mistakes, or, in other words, to have correct spelling, tenses, punctuation, and just how the sentence is in general.
I have attached the basic rules of grammar below.
Hope this helps!
Have a great day!