Law Of Proximity
The law of proximity is a concept in Gestalt psychology and states that objects that are close to each other have the tendency to be grouped together. One of the Gestalt laws of perceptual organization, the law of proximity proposes that even objects that are vastly different from one another are mentally grouped together if they are near each other (close in proximity).
For example, when you look at this:
AAAA BBBB CCCC
You perceptually group the As, Bs, and Cs together with each other. This is the law of proximity.