pseudo-class

pseudo-class

notes

example

โญ๏ธ ๆณจๆ„๏ผš p:first-child ๆ˜ฏๆŒ‡ไธ€ๅ€‹ <p> ๅŒๆ™‚ๅˆๆ˜ฏ :first-childใ€‚ ๅฆ‚ๆžœ่ฆ้ธใ€Œ็ฌฌไธ€ๅ€‹ๅ‡บ็พใ€็š„ <p>๏ผŒ่ฆ็”จ p:first-of-typeใ€‚

:last-child

:only-child

:nth-child(an+b)

:not( ยซselectorยป )

:not(:defined)

unkowned tag ๐Ÿ‘‰custom element upgrade

:hover

:focus

:root

<html> element in HTML file

any element that has been defined (builtin or custom)

get direct children of an element

Last updated

Was this helpful?