🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Intermediate

What is MVC (Model-View-Controller)?

An architectural pattern that separates an application into three components: data (Model), interface (View), and logic (Controller).

MVC promotes separation of concerns. The Model manages data and business logic. The View presents data to users. The Controller handles user input, updates the Model, and selects Views. This separation makes code more organized and testable.

MVC is used in many web frameworks: Laravel (PHP), Django (Python, uses MTV variant), Ruby on Rails, Spring MVC (Java), and ASP.NET MVC. Related patterns include MVVM and MVP.

Related Terms

Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
CORS Headers
HTTP headers that control cross-origin resource sharing between different domains, specifying allowed origins, methods, and headers.
DOM (Document Object Model)
A programming interface for HTML documents that represents the page structure as a tree of objects that can be manipulated with JavaScript.
CORS Preflight
An automatic OPTIONS request sent by browsers before certain cross-origin requests to check if the actual request is permitted.
Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
SEO (Search Engine Optimization)
The practice of optimizing websites to rank higher in search engine results, increasing organic traffic.
View All Web Development Terms →