! → full HTML5 boilerplate
doc → HTML5 doctype only
암시적 태그
.class
로 변환
ul>.item
자식이
로 변환
table>.row
자식이
로 변환
select>.opt
자식이
중첩
중첩 연산자
>
자식 요소
+
형제 요소
^
한 레벨 위로
^^
두 레벨 위로
중첩 예시
div>ul>li → nested child elements
div+p+footer → sibling elements
div>p>span^h2 → climb up: h2 is sibling of p
div>p>span^^h2 → climb up twice: h2 sibling of div
그룹화
괄호 그룹화
div>(header>nav)+main+footer
→ groups header>nav as a unit
(div>h2+p)*3
→ repeat grouped structure 3 times
복잡한 레이아웃
.container>(header>h1+nav>ul>li*3)+main+footer
→ full page layout skeleton
곱셈
반복 연산자
li*5
요소 5개 생성
div>p*3
자식 단락 3개를 가진 div
ul>li*4>a
링크를 포함한 항목 4개의 목록
tr>td*4
셀 4개인 테이블 행
곱셈 예시
ul>li.item*5 → 5 list items with class
table>tr*3>td*4 → 3x4 table grid
.row>.col*3>p{Content} → 3-column row with text