Question · Svelte and SvelteKit course · Module 2: Components
Scoped Styles
What does it mean that styles in Svelte are 'scoped' (isolated)?
Answer options
- Styles are global and apply everywhere
- Styles only apply within the component where they're defined
- Styles are compiled into inline styles
- Styles require the !important prefix
Show the answer
Correct answer:
- Styles only apply within the component where they're defined