updates html tag snippet