The particular recognition proteins synthesised by a cell determine which cells if can and cannot attach to.
If cells from different tissues are separated and then mixed together, they reform into the tissues as the recognition proteins bind.
In tissues, cells also interact with the extracellular matrix, a network of molecules secreted by cells. In some tissues, the extracellular matrix is a major component of tissue, e.g. cartilage