The purpose of a text is simply the writer's reason for writing. Many texts have more than one purpose, but usually one will stand out as primary. Readers have the job of determining the purpose or purposes of a text and understanding why the writer is writing and what the writer wants the reader to do with the text.
Explanation:
An explanation text tells your audience how something works or why something happens. Explanations detail and logically describe the stages in a process, such as the water cycle, or how a steam engine works. Other examples could be how a law is made, or why we blink when we sneeze