Pre- and post-head HTML support