replace ids with html5 header and footer tags