Astro for Beginners / Chapter 1 — What Is Astro? (lessons 1–4) / Lesson 1

MPAs, SPAs, and Where Astro Fits

Time needed: about 6 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Two ways to build

There are two broad ways to build a website.

An MPA (Multi-Page Application) has an HTML file per page, and when you follow a link, the browser fetches the next HTML.

An SPA (Single-Page Application) serves just one HTML page, and from then on JavaScript redraws the content.

React, Vue, and Next.js default to this second way of thinking.

It's not that one is better; what you're building decides which fits.

editor.html

Tab indents. To leave the editor, press Esc, then Tab.

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.