Every type of text is written for a particular audience, for a particular purpose
Make-up advertisement in magazine:
(professional) women interested in appearance; to make these women buy that particular brand of make-up
Background news article on the status of bitcoins
Adults interested in world politics and economics; to provide detailed information on the topic
The purpose and the audience determine the topic, the tone and mood of the text, the language and style and the structure of the text