Aspects of Wilson loops in 3- and 4-dimensional gauge theories