freeCodeCamp/guide/english/css/selectors/attribute/dollar-sign-equals/index.md

19 lines
325 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Dollar Sign Equals
---
## Dollar Sign Equals
Dollar sign CSS attribute selector or $ is used for selecting attributes that end with specific value.
#### Example
If you want to search all anchor links of file type .pdf and make them red, you can do it like this:
```css
a[href$=".pdf"] {
color: red;
}
```