Check both tag and data