How the /tp Command Works
The basic syntax is /tp <target> <destination>, where the destination is either coordinates or another entity. Add facing to control which way the player looks after teleporting: a rotation (yaw and pitch), a point, or an entity.
Examples
Teleport the nearest player to specific coordinates.
Teleport everyone to spawn, facing south.
Teleport yourself to the nearest villager.
Pair this with the Locate Command Generator: locate a biome or structure, then teleport there.