nth-child(1)
nth-of-type(1)
first-child
first-of-type
last-child
last-of-type
child는 자식들 전체중에 몇번째고
type은 자식들 전체중 자신과 동일한 선택자중에서 몇번째를 듯함
'div:last-of-type'
1)document.querySelectorAll('#a123')
2)document.querySelectorAll('[id=a123]')
1번과 2번은 거의 비슷한데 살짝 다르다.
2번이 1번에 비해 별로 안좋아보이지만 정규표현식과 만나면 강력해진다.
document.querySelectorAll('[id^=a123]')
document.querySelectorAll('[id$=a123]')
document.querySelectorAll('[id*=a123]')