What does the tone of a piece of writing show?

the attitude of the author
the opinion of the reader
the feeling a reader has while reading the piece
the feeling the author has after writing the piece