SharePoint features provide a mechanism to add our custom branding elements to the SharePoint farm at four different scopes. Features can be scoped to the farm level, web application level, site collection level, or site (web) level. In addition to adding content, they can run custom code when activated, upgraded, deactivated, and so on in feature event receivers.
In this recipe, we will create a site (web) scoped feature that adds and configures our branding elements on the site.
Follow these steps to create a feature event receiver: