A garden fence does more than mark a boundary.
The most important question is what the fence is for, because that decides its height, material and construction.
If animals are your main problem, build the fence to the specifications that actually work.
A white or natural wood picket fence frames a cottage or kitchen garden beautifully.
Many towns and homeowner associations limit fence height and style, especially in front yards, and some require permits.
These take the most strain, so make them the sturdiest, set deep and braced.
Inspect regularly for gaps, especially at the base and around gates.
Step-by-step advice, charts and free garden calculators at Garden Voila.