Formality

From Teflpedia

Formality (/fɔ:mælɪti/) is a linguistic property of register.

People use informal language to talk about everyday things with their friends. People use formal language in writing to people they don't know.