Correct grammar is to capitalise only proper nouns, and the first letter of a sentence.
If I wanted to be pedantic, I'd say that capitalisation, along with spelling, word spacing, punctuation, etc. are orthography and not grammar.
I accept this pedanticism.