Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- width속성
- i 태그
- 자식결합자
- html 태그
- Live Server
- background-color 속성
- RGBA
- 전체 선택자
- not 의사클래스
- iframe 태그
- height속성
- sub태그
- 인접 형제 결합자
- id 선택자
- iframe
- 임베디드
- Checked 의사 클래스
- html tag i
- css
- padding 속성
- go live
- focus 의사클래스
- tag html
- reveal in file explorer
- RGB
- 일반 형제 결합자
- sup태그
- html
- br 태그
- 아두이노
Archives
- Today
- Total
so woon!
[결합자] 자식 결합자 (Child Combinator) 본문
학습일 : 2022. 09. 05
자식 결합자 (Child Combinator)
자식 결합자는 어떠한 부모 선택자에 대한 자식을 선택하기 위해 사용하는 결합자이다.
다음과 같이 작성한다. ("는 없는 것으로 한다.)
"어떠한 부모 선택자" > "자식 선택자" {
"속성" : "속성 값";
"속성" : "속성 값";
"속성" : "속성 값";
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>자식 결합자</title>
<style>
body > section {
color: red;
}
</style>
</head>
<body>
<div>
<section>Hi!</section>❤
</div>
<section>내가 빨간색임</section>❤
</body>
</html>
===========실행결과=============
'CSS > 개념정리' 카테고리의 다른 글
[결합자] 일반 형제 결합자 (General Sibiling Combinator) (0) | 2022.09.06 |
---|---|
[결합자] 자손 결합자 (Descendant Combinator) (0) | 2022.09.06 |
[선택자] 그룹 선택자 (Group Selector) (0) | 2022.09.06 |
[선택자] 요소 선택자 (Element Selector) (0) | 2022.09.06 |
[선택자] 전체 선택자 (Universal Selector) (0) | 2022.09.06 |
Comments