Answer: tone
Tone is the attitude an author expresses through words.
Some people would think that the answer would be mood, but mood would be a whole different example. Mood is the attitude through signs of face and actions, tone is by the voice or the words from mouth.