# 기본선택자

![](https://1378939749-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDqatCNg4cqjspD43%2F-MJPVA_KcpMmAPsPxg4v%2F-MJPXDQdXnQ-KolGrQYH%2Fimage%20\(1\).png?alt=media\&token=58be02bd-fcec-45d8-89c2-cd32515028e0)

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