Orthography is the set of conventions for writing a language. It encompasses the rules of spelling, hyphenation, capitalization, word breaks, emphasis, punctuation, morphology, syntax, and phonology. Orthography is distinct from grammar, which concerns the structure of languages and not their writing.

More Info: en.wikipedia.org