That’s right, tariffs are a tax affecting certain imported items.
Inflation is a monetary phenomenon affecting virtually everything.
The definition of inflation is too many dollars chasing to few goods.