Here, we restrict ourselves to a small, self-contained example and refer to the official tutorials and documentation for elaborate usages.
Copy the following content to a file leaflet.html and open it in your browser:
You want to …
use a different background? → Leaflet natively supports TMS and WMS. See there which options are supported in Leaflet.