Bootstrap provides a host of different HTML elements that are styled and ready to use. These elements include the following:
Tables
Buttons
Forms
Images
Bootstrap provides default styling for HTML tables with a few options to customize their layouts and behaviors. The default ASP.NET MVC scaffolding automatically adds the .table
class name to the table element when generating a List view.
In the previous chapter, we created an empty ASP.NET Core project. In order to enable the built-in Visual Studio Scaffolding and because the new ASP.NET's approach is to only add the dependencies you need, we have to manually add the required dependencies to the project by completing the following tasks:
Open the project you created in Chapter 1, Getting Started with ASP.NET Core and Bootstrap 4, in Visual Studio.
Locate the
project.json
file in the project's root folder and double-click it to edit.Add or update the following dependencies to the dependencies...