What is the difference between an app and an extension?

An app can be used independently whereas an extension has to be integrated in a website before it is used.