Skip to content

MPA Tutorials — Multi-Page Applications Complete Guide

In this tutorial series, you'll learn Multi-Page Applications from the ground up — server-rendered pages, form submissions, session management, SEO benefits, and building traditional web applications.

Multi-Page Applications reload the entire page from the server on each navigation, with each page having its own URL — the traditional web model that still powers most of the internet.

1. What Are MPAs
Definition, architecture, and core characteristics
2. MPAs vs SPAs
When to choose MPA over SPA and vice versa
3. Server Rendering
Serving fully-formed HTML pages from the server
4. Page Transitions
Navigation patterns and full-page reloads
5. Form Submissions
POST/GET patterns, validation, and server handling
6. Session Management
Cookies, sessions, and authentication in MPAs
7. CSRF Protection
Cross-Site Request Forgery prevention strategies
8. MPA SEO
Why MPAs excel at search engine optimization
9. MPA Performance
Optimizing server-rendered page speed
10. Turbolinks & Hotwire
SPA-like navigation without JavaScript frameworks
11. HTMX for MPAs
Adding dynamic behavior to MPAs with HTMX
12. Progressive Enhancement
Building MPAs that work without JavaScript
13. MPA Accessibility
Inherent accessibility benefits of server-rendered pages
14. MPA Security
Security considerations for multi-page applications
15. MPA Mini Project
Build a complete MPA from scratch

Published Topics

What Is an MPA — Multi-Page Applications Explained

A Multi-Page Application (MPA) reloads the entire page from the server on each navigation, with each page having its own URL — the traditional web model.

✓ Live

MPA vs SPA — When to Choose Multi-Page or Single-Page Architecture

MPA vs SPA compares architecture tradeoffs: SEO, performance, development complexity, user experience, and use cases for choosing multi-page or single-page applications.

✓ Live

Server Rendering in MPAs — Generating HTML on the Server

Server rendering in MPAs generates complete HTML documents on the server for each request, delivering fully-formed pages with content, styles, and structure.

✓ Live

Page Transitions in MPAs — Navigation Patterns and Full-Page Reloads

MPA page transitions involve full browser navigation with loading indicators, focus management, scroll position restoration, and progressive enhancement for smoother UX.

✓ Live

Form Submissions in MPAs — POST/GET Patterns, Validation, and Server Handling

MPA form submissions use POST and GET methods with server-side validation, error handling, CSRF protection, and the Post-Redirect-Get pattern for reliable data processing.

✓ Live

Session Management in MPAs — Cookies, Sessions, and User State

Session management in MPAs uses server-side sessions with cookies, storing user state across requests to enable authentication, preferences, and shopping carts.

✓ Live

MPA Middleware — Logging, Authentication, Compression, and Error Handling

Learn middleware patterns in multi-page applications: authentication checks, request logging, response compression, and centralized error handling.

✓ Live

CSRF Protection in MPAs — Preventing Cross-Site Request Forgery

CSRF protection in MPAs uses synchronized tokens, SameSite cookies, and double-submit patterns to prevent attackers from forging authenticated requests on behalf of users.

✓ Live

Real-Time Features in MPAs — WebSockets, SSE, and Hotwire

Add real-time features to multi-page applications: WebSockets for live updates, Server-Sent Events for notifications, and Hotwire/Turbo Streams.

✓ Live

MPA SEO — Why Multi-Page Applications Excel at Search Engine Optimization

MPA SEO benefits from server-rendered HTML, unique URLs per page, natural content discovery, and no JavaScript dependency for search engine crawlers to index content.

✓ Live

MPA Authentication — Session-Based Auth, CSRF, and Security Best Practices

Deep dive into MPA authentication: session management, CSRF tokens, secure cookies, and protecting routes.

✓ Live

MPA Performance — Optimizing Server-Rendered Page Speed

MPA performance optimization covers server response time, caching strategies, asset optimization, critical CSS, image optimization, and Core Web Vitals improvement.

✓ Live

MPA Testing — Integration Tests, E2E Tests, and Playwright

Learn testing strategies for multi-page applications: integration tests for routes, E2E tests with Playwright, and testing middleware.

✓ Live

Turbolinks and Hotwire — SPA-Like Navigation Without JavaScript Frameworks

Turbolinks and Hotwire bring SPA-like instant navigation to MPAs by intercepting clicks, fetching HTML via AJAX, and replacing the page body without a full reload.

✓ Live

MPA Deployment — Hosting, Scaling, and DevOps for Multi-Page Apps

Learn MPA deployment strategies: traditional hosting vs serverless, scaling considerations, and CI/CD pipelines.

✓ Live

HTMX for MPAs — Adding Dynamic Behavior with HTML Attributes

HTMX extends MPAs with dynamic behavior using HTML attributes instead of JavaScript, enabling AJAX, WebSockets, and CSS transitions directly from server-rendered HTML.

✓ Live

MPA Internationalization — Server-Side i18n, URL-Based Locales, and SEO

Implement multi-language support in MPAs: URL-based locale detection, server-side translations, and hreflang for SEO.

✓ Live

Progressive Enhancement in MPAs — Building Without JavaScript Dependency

Progressive enhancement in MPAs builds core functionality with HTML first, then layers CSS and JavaScript to enhance the experience without requiring any of them.

✓ Live

MPA Accessibility — Building Inclusive Multi-Page Applications

MPA accessibility covers semantic HTML, skip navigation, focus management, ARIA landmarks, form accessibility, and screen reader support in server-rendered pages.

✓ Live

MPA Security — Protecting Multi-Page Applications from Vulnerabilities

MPA security covers server-side validation, SQL injection prevention, XSS protection, CSRF tokens, secure sessions, HTTPS enforcement, and security headers.

✓ Live

MPA Mini Project — Build a Complete Multi-Page Application from Scratch

Build a complete MPA from scratch combining server rendering, form handling, session management, CSRF protection, SEO, performance, and security.

✓ Live

All 21 topics in MPA Tutorials — Multi-Page Applications Complete Guide are published.