Skip to main content
InterviewHubPRO
Section Overview
Q8

Question 8 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

16%
Astro Islands & SSR (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

How does Astro handle Scoped CSS?

senior LevelAstro

In Simple Words: Inside .astro files, styles written in <style> tags are automatically scoped using generated attribute selectors (e.g., h1[data-astro-cid-j7pv25f6]).

  • Styles never leak to parent or child components.
  • Supports Sass, Less, and Tailwind CSS natively with zero extra configuration.