is table salt element or compound

Table salt (sodium chloride, NaCl) is a compound.