checks for tag/class structure