You can put this solution on YOUR website! The diagonal of a square is the hypotenuse of a 45-45-90 right triangle, one in which the ratio of the sides is 1:1:sqrt(2).
Thus if the hypotenuse is 8, then the side is
8/sqrt(2) = 4*sqrt(2) or about 5.656