A well-written, employer-centric cover letter will typically consist of three main parts: the introduction, the body, and the closing (which ends with a compelling action or request).
The introduction: Whenever possible, indicate how you came to apply to the company, such as...
responding to...