You can create text or numeric expressions that determine the content of labels when you style features.