When to use informal Spanish

Knowing when and where to use the informal Spanish is subtle. For example, our best friends in Mexico are David and Teresa… my wife talks to Teresa in informal Spanish, but she address Teresa’s husband David in formal Spanish.

Reason: She doesn’t want to be so presumptuous as to speak casually to
the husband of una amiga.