Vue · Junior · Question 34 of 75

What does <style scoped> do?

Explanation

The compiler rewrites .btn to .btn[data-v-7ba5bd90]. A child component's root element is affected by both the parent's and its own scoped styles; to style deeper elements use :deep().

Further reading

Problem with a question

Vue · Junior · question 34

Test yourself

Take the Vue · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz