A formal tone can be created in a text using
A formal tone in a text can be created using syntax
It's called a syntax I think