Complete the code to apply global styles in a Svelte component.
<style [1]>
body {
background-color: lightblue;
}
</style>Using global in the style tag applies styles globally in Svelte.
Complete the code to import a global CSS file in a Svelte component.
<script> import '[1]'; </script>
Importing ./global.css applies styles globally if the CSS file contains global styles.
Fix the error in the style tag to make styles global in Svelte.
<style [1]>
h1 {
color: red;
}
</style>The global attribute makes styles apply globally instead of being scoped.
Fill both blanks to create a global style for all paragraphs with margin and font size.
<style [1]> p { margin: [2]; font-size: 1.2rem; } </style>
Using global applies styles globally. Setting margin to 2rem adds space around paragraphs.
Fill all three blanks to define global styles with a background color, text color, and padding for the body.
<style [1]> body { background-color: [2]; color: [3]; padding: 1rem; } </style>
Use global to apply styles globally. The body background is white and text color is black for good contrast.