Not attached - weight of the stocking contents keeps them in place.
Like these only a little shorter.
Decorative Metal Christmas Stocking Holders, Black Finish, https://a.co/d/38bF6nf
7 Christmas stocking holders (Harbor Bay)
This offer has been gifted to someone and is no longer available.