What is Web Root?
hosting
The web root is the top-level directory the web server reads files from for a site — on cPanel accounts usually public_html. Files outside the web root cannot be reached by a browser, which is the right place for configuration and credentials. Keep backups, logs and .env files outside the web root so they are never downloadable.
The short answer above covers the decision most buyers are making. The main entry for web root carries the complete definition, a usage note and the terms most often confused with it, so the two pages together answer both the quick question and the follow-ups.