format head tag contents