Complete the code to apply scoped styles inside an Astro component.
<style [1]>
p {
color: blue;
}
</style>
<p>Hello, Astro!</p>Using scoped inside the <style> tag applies styles only to this component.
Complete the code to import a CSS module and use it in an Astro component.
--- import styles from './Button.module.css'; --- <button class=[1]>Click me</button>
Use styles.button to apply the CSS module class named 'button'.
Fix the error in the scoped style syntax to correctly apply styles only to this component.
<style [1]>
h1 {
font-weight: bold;
}
</style>
<h1>Title</h1>The correct attribute is scoped without any value to scope styles.
Fill both blanks to create a CSS module and apply it to a div in Astro.
--- import styles from './Card.module.css'; --- <div class=[1]> Content </div> <style [2]> div { padding: 1rem; } </style>
Use styles.card to apply the CSS module class and scoped to limit styles inside the component.
Fill all three blanks to create a scoped style, import a CSS module, and apply a class in Astro.
--- import styles from './Alert.module.css'; --- <section class=[1]> Warning message </section> <style [2]> section { border: 1px solid red; } </style> <script> console.log('[3]'); </script>
Use styles.alert for the class, scoped to limit styles, and log a message 'Alert loaded' in the script.
