In SharePoint, web configuration includes:
You should always use a SPConfigModification class to modify your web.config – never tell your user or administrator to make changes manually! This also allows them to switch off a feature from SharePoint knowing that the changes had been reverted. For developers – you must test your SPConfigModification carefully, mismatched XPath will cause problems in your web.config and create duplicate entries!