Chapter quiz · Astro Basics

Test what you learned.

8 questions on Astro Basics. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Astro Basics — Chapter Quiz

Eight questions on the .astro file, frontmatter, templates.

0/ 8
  1. Question 1
    1

    Where does Astro frontmatter code run?

  2. Question 2
    2

    A <style> block in an .astro file is global by default.

  3. Question 3
    3

    How do you write a class attribute in an .astro template?

  4. Question 4
    4

    What does this render?

    ---
    const tags = ["js", "astro"];
    ---
    <ul>
      {tags.map(t => <li>{t}</li>)}
    </ul>
    
  5. Question 5
    5

    Where do unprocessed static assets (favicon, robots.txt) go?

  6. Question 6
    6

    An .astro file must return one root element.

  7. Question 7
    7

    What does class:list={["btn", isActive && "active"]} do?

  8. Question 8
    8

    The <slot /> element is where a component's _________ content renders.

Pick an answer — instant feedback as you go.