# @scope

*noun*

say it: **“AT skohp”** **/æt skoʊp/**

A CSS at-rule that limits the rules inside it to one part of the page, with an optional inner edge where they stop applying.

## What does `@scope` do?

`@scope` limits rules to a part of the page, optionally stopping at an inner boundary.

```css
@scope (.article) to (.comments) {
  a { color: navy; }   /* article links, not links in the comments */
}
```

## In a sentence

- “I wrapped the card rules in **@scope** (.product-card) so plain img and h3 selectors only reach inside the card.”
- “With **@scope** (.article) to (.comments), the article's link color stops where the comments begin.”

Level: Freelancer · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=4)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/scope-css
