Given HTML, and CSS files, and a browser, Which is for M, V, and C in MVC design pattern?

Question: Given HTML, and CSS files, and a browser, Which is for M, V, and C in MVC design pattern?

Answer: HTML and CSS files are your models (M), and the browser is both the view and the controller (V and C).

Reason: It is simple as to why the HTML and CSS files are the models because they are the containers holding informatin. The browser is the view because it shows information to the user, and it is also a controller because it gets the user requests and fetches the right information from the models to display to the user.

Comments (1)