Pseudo-class chọn state của element (:hover, :focus, :first-child, :nth-child).
- Pseudo-element tạo/chọn phần ảo (::before, ::after, ::first-line).
- Pseudo-class dùng 1 dấu hai chấm, pseudo-element dùng 2.
Pseudo-classes select the state of an element (:hover, :focus, :first-child, :nth-child).
- Pseudo-elements create or select virtual parts (::before, ::after, ::first-line).
- Pseudo-classes use one colon, pseudo-elements use two.