Bird
0
0

Which of these is a benefit of using external styles over inline styles in Angular components?

easy📝 Conceptual Q2 of 15
Angular - Components
Which of these is a benefit of using external styles over inline styles in Angular components?
AExternal styles do not require CSS syntax.
BExternal styles allow better reuse across multiple components.
CExternal styles automatically apply to all components globally.
DExternal styles are faster to load than inline styles.
Step-by-Step Solution
Solution:
  1. Step 1: Consider reuse of styles

    External stylesheets can be shared and reused by multiple components, improving maintainability.
  2. Step 2: Evaluate other options

    External styles do not automatically apply globally; they must be linked. They require CSS syntax and loading speed depends on many factors.
  3. Final Answer:

    External styles allow better reuse across multiple components. -> Option B
  4. Quick Check:

    Benefit of external styles = D [OK]
Quick Trick: External stylesheets help reuse CSS across components [OK]
Common Mistakes:
  • Assuming external styles apply globally by default
  • Believing external styles load faster always
  • Thinking external styles don't need CSS syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes