100 CSS Selectors Explained in 20 Minutes
Slaying The Dragon
@slayingthedragonAbout
Slaying the dragon is about facing your fears, pursuing meaning and transforming into the web developer you were always destined to be.
Latest Posts
Video Description
🚨🚨🚨 COURSES - https://slayingthedragon.io 🚨🚨🚨 Join the discord - https://discord.gg/Ccz9nQSfQB 0:00 1. Universal Star Selector 0:14 2. Type Selector 0:27 3. Class Selector 0:42 4. Id Selector 0:59 5. Grouping Selectors 1:04 6. Adjacent Sibling Combinator 1:21 7. General Sibling Combinator 1:35 8. Direct Child Combinator 1:49 9. Descendant Combinator 2:09 10. CSS Nesting 2:21 11. Compound Selector 2:36 12. [attribute] 2:48 13. element[attribute] 2:56 14. [attribute="value"] 3:03 15. [attribute^="value"] 3:14 16. [attribute*="value"] 3:22 17. [attribute$="value"] 3:31 18. [attribute~="value"] 3:43 19. [attribute|="value"] 3:59 20. :root 4:05 21. :first-child 4:14 22. :last-child 4:23 23. :nth-child() 5:17 24. :nth-last-child() 5:30 25. :nth-of-type() 5:37 26. :nth-last-of-type() 5:46 27. :first-of-type 5:52 28. :last-of-type 5:57 29. :only-of-type 6:06 30. :only-child 6:22 31. :empty 6:36 32. :hover 6:45 33. :active 6:54 34. :focus 7:08 35. :focus-visible 7:23 36. :focus-within 7:41 37. :autofill 7:46 38. :disabled 8:00 39. :enabled 8:05 40. :placeholder-shown 8:11 41. :read-only 8:26 42. :read-write 8:32 43. :default 8:46 44. :checked 8:55 45. :indeterminate 9:08 46. :valid 9:24 47. :invalid 9:31 48. :user-valid 9:51 49. :user-invalid 9:58 50. :in-range 10:14 51. :out-of-range 10:22 52. :required 10:27 53. :optional 10:35 54. :link 10:45 55. :visited 10:54 56. :any-link 11:04 57. :target 11:38 58. :scope 12:32 59. :defined 12:48 60. :fullscreen 13:08 61. :modal 13:27 62. :picture-in-picture 13:39 63. :is() 13:55 64. :where() 14:04 65. :not() 14:15 66. :has() 14:25 67. :popover-open 14:45 68. :dir() 15:07 69. :lang() 15:28 70. ::before 15:37 71. ::after 15:45 72. ::first-letter 15:49 73. ::first-line 15:53 74. ::backdrop 16:05 75. ::cue 16:16 76 ::file-selector-button 16:29 77. ::marker 16:34 78. ::placeholder 16:38 79. ::selection 16:44 80. :host 16:55 81. ::part() 17:07 82. ::slotted() 17:15 83. ::target-text 17:54 84. :host-context() 18:01 85. :blank 18:08 86. :local-link 18:12 87. :target-within 18:20 88. :playing 18:21 89. :paused 90. :buffering 91. :muted 92. :seeking 93. :stalled 18:23 94. :volume-locked 18:28 95. :current 96. :past 97. :future 18:38 98. ::cue-region 18:44 99. ::grammar-error 100. ::spelling-error 18:52 101. CSS Trick 1 20:22 102. CSS Trick 2
You May Also Like
Upgrade Your iPhone Experience
AI-recommended products based on this video
![VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung](https://m.media-amazon.com/images/I/71bHSP1cRkL._AC_UL960_FMwebp_QL65_.jpg)
VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung
![iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad](https://m.media-amazon.com/images/I/517jTqwo1nL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad
![iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods](https://m.media-amazon.com/images/I/71xZOlUELbL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods

2Pack 10ft iPhone Charger 90 Degree Lightning Cable Right Angle Long USB Charging Cord Compatible with Apple iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad iPod

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

4-in-1 Wireless Magnetic Power Bank 10800mAh Portable Charger with iWatch Charger, QC4.0+20W PD Fast Charging USB C Battery Pack for Magsafe, iPhone 16/15/14/13/12 Series, Apple Watch etc. (White)

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More
![Spigen Case for iPhone 17 Case, Ultra Hybrid MagFit [Anti-Yellowing, Magsafe Compatible] Designed for Apple iPhone 17 Case (2025) - Clear White ClimatePartner certified](https://m.media-amazon.com/images/I/61gT1WljYwL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 17 Case, Ultra Hybrid MagFit [Anti-Yellowing, Magsafe Compatible] Designed for Apple iPhone 17 Case (2025) - Clear White ClimatePartner certified
![Spigen Case for iPhone 16 Case, Ultra Hybrid [MagFit] Compatible with MagSafe - White](https://m.media-amazon.com/images/I/61NZGerVSrL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Case, Ultra Hybrid [MagFit] Compatible with MagSafe - White
![Spigen Case for Galaxy S25 Plus Case, Ultra Hybrid S MagFit [Fast Wireless Charging] Compatible with MagSafe - White](https://m.media-amazon.com/images/I/71+QlQaegQL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for Galaxy S25 Plus Case, Ultra Hybrid S MagFit [Fast Wireless Charging] Compatible with MagSafe - White

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods Global Recycled Standard

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods (Blue) Global Recycled Standard

Wireless Charger for iPhone- 3 in 1 Charging Station for iPhone 16/15/14/13/12/Pro Max/Pro/Mini/Plus, Apple Watch 10/9/8/7/SE/6/5/4/3/2/1/Ultra2/Ultra, AirPods pro/2/3/4

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel

Phone Case for iPhone 12 Pro Max Case Compatible with MagSafe, YUANDMI Case for iPhone 12 Pro Max Magnetic Slim Thin Translucent Matte Back Shockproof Anti-Yellow Protective Cover Case Black
![iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad](https://m.media-amazon.com/images/I/517jTqwo1nL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad
![iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods](https://m.media-amazon.com/images/I/71xZOlUELbL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods

2Pack 10ft iPhone Charger 90 Degree Lightning Cable Right Angle Long USB Charging Cord Compatible with Apple iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad iPod

FNTCASE for iPhone 13 Phone Case: iPhone 14 Phone Clear Case Magnetic Military Grade Drop Protection Anti Yellowing Cell Phone Cover - Rugged Durable Shockproof Protective Bumper - 6.1 Inch (Clear A) Global Recycled Standard

JETech Case for iPhone 13 Pro 6.1-Inch, Non-Yellowing Shockproof Phone Bumper Cover, Anti-Scratch Clear Back (Clear)

Spigen Case for iPhone 15, iPhone 14, and iPhone 13, Ultra Hybrid MagFit Designed for Apple iPhone 15/14/13 - Crystal Clear
![Spigen Case for iPhone 17 Case, Ultra Hybrid MagFit [Anti-Yellowing, Magsafe Compatible] Designed for Apple iPhone 17 Case (2025) - Clear White ClimatePartner certified](https://m.media-amazon.com/images/I/61gT1WljYwL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 17 Case, Ultra Hybrid MagFit [Anti-Yellowing, Magsafe Compatible] Designed for Apple iPhone 17 Case (2025) - Clear White ClimatePartner certified

ESR for iPhone 17 Pro Case with Stash Stand, Camera Control, Compatible with MagSafe, Shockproof Military-Grade Protection, Magnetic Phone Case for iPhone 17 Pro, Classic Hybrid Case (HaloLock), Clear
![GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black](https://m.media-amazon.com/images/I/61+L8Wb39SL._AC_UL960_FMwebp_QL65_.jpg)
GuaGua Magnetic Case for iPhone 7 & iPhone 8 & iPhone SE 2022/2020 [Compatible with Magsafe] Translucent Matte Back Slim Thin Anti- Scratch Shockproof Protective Phone Cases for iPhone 8/7/SE-Black



















