form
The shape or structure a text takes, such as a letter, diary, sonnet, speech or essay.
function
What a text is meant to do for its audience, such as inform, persuade, entertain, warn or mourn.
epistolary
Written as letters (and sometimes diary entries or other documents), as in an epistolary novel.
frame narrative
A story told inside another story, like a picture inside a frame.
essay
A piece of non-fiction prose on one subject; from the French essai, meaning an attempt or trial.