# @scope

Limits rules to part of the page, with an optional inner boundary.

## 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 */
}
```

Level: Freelancer · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/freelancer)

Updated: September 27, 2026

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