Use insertElementIntoRange for safe captioning and centering.