> For the complete documentation index, see [llms.txt](https://joe-reynolds.gitbook.io/css-refactoring-patterns/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://joe-reynolds.gitbook.io/css-refactoring-patterns/patterns/remove-qualified-selector.md).

# Remove qualified selector

A selector like a.nav-link is useless (unless intentional).

From:

```
a.nav-link {
  color: red;
}
```

To

```
.nav-link {
  color: red
}
```

Why?

* Decreases specificity therefore making it easier to override.
* The selector is now applicable to more than just `<a>` tags.
