The Web Host was introduced with the early versions of ASP.NET Core. It is specifically designed for web applications.
Key Points
Built for Web Apps Only: Web Host is tightly coupled with ASP.NET Core MVC or Razor Pages applications.
Uses Kestrel or IIS: It mainly works with Kestrel (a cross-platform web server) or IIS (Windows web server).
Startup.cs Support: The Web Host requires a Startup
class where you configure services and the middleware pipeline.
Less Flexible: Since it is web-only, you cannot use it for console apps, worker services, or background jobs.