아래 예시를 참고해보자.
See the Pen Untitled by Jirong (@jirongkim) on CodePen.
대표적인 예시로는 hover, focused, active가 있다.
더 많은 pseudo는 아래 링크에서 확인하면 된다.
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes
Pseudo-classes - CSS: Cascading Style Sheets | MDN
A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s). For example, :hover can be used to change a button's color when the user's pointer hovers over it.
developer.mozilla.org
'프로그래밍 > Web' 카테고리의 다른 글
[Web] Table을 이용하여 장바구니 만들기 (0) | 2022.05.05 |
---|---|
[Web] OOCSS, BEM에 관하여 (1) | 2022.05.04 |
[Web] form 태그를 활용하여 contact us 페이지 만들기 (0) | 2022.05.04 |
[Web] 내가 쓰는 VS Code Extension (0) | 2022.05.02 |
[HTML/CSS] position - static/relative/absolute/fixed/z-index (0) | 2022.05.01 |
댓글