HTML and CSS Reference
MVC Web Applications
In this chapter you will use ASP.NET MVC to create a feedback form that will demonstrate several of the new
input types. I will first provide a brief introduction of the Model-view-controller (MVC) framework included with
the .NET platform and then show you how to build an HTML5-based web page using MVC. The end result will be
something similar to what you did in Chapter 2 but the implementation will be quite different. As you will see, the
solution will rely heavily on the ability to extend the MVC framework to incorporate the new HTML5 features.
Model-view-controller (MVC) is an architectural pattern that has been around since as early as the late
1970s. The primary benefit of this pattern is the separation of concerns, allowing independent development,
testing, and maintenance of each. The model provides the data and business logic. If the application was
presenting a product catalog, for example, the model would provide the product details. If changes are made,
the model is responsible for persisting the data. The view provides the user experience; both formatting the
presentation of data as well as enabling user interaction with input controls, buttons, and links. The controller
handles the user requests, passing this to the model and invoking the appropriate view. This process is illustrated
in Figure 3-1 .
Figure 3-1. The model-view-controller architectural pattern