Details
Fences prevents players and mobs from jumping over them, while using only one actual block space.
A fence occupies the center space of blocks and automatically connects to any block that is placed next to it. Fences are broken most quickly with an axe.
Fences also have a wide use of enclosing animals, such as pigs, chickens, cows, and sheep.