HTML: reverse tag order