How to make use of "tag" while generating deposit addres and to use

How to make use of “tag” while generating deposit address and how to use addressTag while querying deposit history?
in binance api, hot use the “tag” and “addressTag”?[{“id”:“”,“amount”:“”,“coin”:“”,“network”:“”,“status”:,“address”:“”,“addressTag”:“”,“txId”:“”,“insertTime”:,“transferType”:,“confirmTimes”:“”,“unlockConfirm”:,“walletType”:}]
{“coin”:“”,“address”:“”,“tag”:“”,“url”:“”,“isDefault”:}

addressTag is used for some coins that required as secondary address.