Question · Vue.js course · Module 1: Vue and Vite

The scoped attribute in style

What does the 'scoped' attribute do in the <style scoped> section?

Answer options

  • Compresses CSS styles
  • Isolates styles to the given component only
  • Adds animations
  • Disables CSS in the component
Show the answer

Correct answer:

  • Isolates styles to the given component only