> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/css/cascade/order.md).

# Order

## order is important

{% hint style="danger" %}
if you change one of the **selectors** to have a **different** [specificity](/web/css/cascade/specificity.md) than the others, this will break down and you may get **unexpected results**.
{% endhint %}

```css
a:link { color: blue; text-decoration: none; }

a:visited { color: purple; }

/* if user hovers over visited link, hover styles take precedence */
a:hover { text-decoration: underline; }

/* if user clicks link, active styles take precedence */
a:active { color: red; }
```
