How does An Electric Fence Work?

With an electric fence you burry the electric fence under ground. Next you would attach the color on your dog which has a box with the oppiste current that the fence has and then if your dog walks over the burried fence it sends a shock through the dogs collar.