# 기본선택자

## 기본선택자

![](https://2439846445-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDwYT4PgCDLbVhviR%2F-MJPWIslZb42UC_s4SBT%2F-MJPXCmDByr7nCpEuI7W%2Fimage.png?alt=media\&token=b6082b03-321d-479f-84ef-ee6fb188a3bd)

```javascript
$("li").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //태그 선택자
$(".list4").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //클래스 선택자
$("#list1").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //아이디 선택자
$("*").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //전체 선택자
$(".list4, .list8, .list9").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"}); //그룹 선택자
```
