Handle tag attributes