Import quota differ from a tariff

How does an import quota differ from a tariff? Can the government ever capture the quota rent? If so, how?                                              ...