Child Combinator
The child combinator (>) selects only direct children, not deeper descendants.
Child vs Descendant
Loading Selector Playground...
Compare:
.parent > p- only DIRECT child paragraphs (2 matches).parent p- ALL descendant paragraphs (3 matches)
Practical Example
Loading Selector Playground...
.menu > li selects only top-level items, not submenu items.
Styling Direct Children
Loading CSS Playground...
Chaining Child Combinators
Loading Selector Playground...
Exercise: Style Direct Children
Style only the direct child divs of the container:
Loading CSS Exercise...
التالي · الدرس 7 من 27
Sibling Combinators
قراءة 1 دقيقة
أنهيت 6 من 27 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

