Course lesson
Add styles to Svelte 3 component
In Svelte 3, the same as in regular HTML we can add CSS styles to a component and this is what we're going to learn in this lesson.
- Duration
- 1 min
- Access
- Pro
- Transcript
- Available
In Svelte 3, the same as in regular HTML we can add CSS styles to a component and this is what we're going to learn in this lesson.
Important note - styles are scoped to the component which means that if we style a h1 tag in component A, it won't automatically affect h1 tags in component B.