Orthography is a set of rules that determine the correct way of writing in a certain language, including norms about spelling, punctuation and word breaks. Orthography is usually not considered part of natural language or grammar itself and therefore not strictly a subject of linguistics, but sometimes of interest in investigating individual languages' pronunciation and writing systems.
The term derives from ορθός orthòs ("correct") e γραφή graphé ("writing").
It is related to punctuation and spelling.