which way would be better? check tag + attribute pair, V.S. check attribute only?