The command, \boxed{Contents}, with math, /math (plus brackets) will create a box which can be very handy. The following website:

LaTeX Spaces and Boxes

has variations worth looking into.