A duty is a type of tax.
Yes and what makes it a tax is the intention. If it is to regulate a market to be more free, it's a tax, otherwise it's a duty.