# 기본선택자

### 기본 선택자&#x20;

![](https://1686368321-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDmBW1ppF03ulXNry%2F-MJPWLGrWGJxcvcZo3T0%2F-MJPXBK_30cK9oOqNjgn%2Fimage.png?alt=media\&token=270f4b4c-7b4d-4b2c-92c8-a381c234023c)

```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"}); //그룹(다중) 선택자 
```

&#x20;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       &#x20;
