Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:04:43+00:00 2026-06-06T21:04:43+00:00

Code: #navigation > ul > li > a Descendant and child. Is a child

  • 0

Code:

#navigation > ul > li > a 

Descendant and child.

Is “a” child of li, or the holde code.
Or is “a” child li but descendant to the rest. I’m not quite into the rules. Hope you can help me out. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:04:45+00:00Added an answer on June 6, 2026 at 9:04 pm

    You read the selector one by one. Whether you read from left to right or right to left is up to you, but selectors are basically linear.

    This selector means:

    Select any a element
    that is a child of a li element (li > a)
    that is a child of ul element (ul > li)
    that is a child of an element with the ID navigation (#navigation > ul).

    Every element that is a child of its parent is also a descendant of its parent as well as that parent’s parents. To put it in simpler terms: an element that’s contained within another element is that element’s descendant. Note that it’s also a child only when it’s directly contained within that element (and not something else nested in between) — people often refer to this as a “direct child” for emphasis, but a child is by definition directly contained in its parent anyway.

    Thus, the structure of this selector implies the following:

    • a is a descendant of #navigation, ul and li but only a child of li

    • li is a descendant of #navigation and ul, but only a child of ul

    • ul is both a descendant and a child of #navigation

    Additional reading:

    • Descendant selector and child selector from the spec
    • What does the ">" (greater-than sign) CSS selector mean? (with an illustration)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I inserted one little jQuery code into my site, to fix the navigation icons
I'm new to LINQ. I understand it's purpose. But I can't quite figure it
There is a requirement in Section 508 to code a Skip Navigation at the
I am using the code below to show/hide a navigation menu on click of
First off I use this code to make the navigation bar always stay fixed;
I have a SIFR script which coverts primary navigation items thusly: [code] /********************* *
I have a horizontal menu navigation. The code is: <div class=menu-holder> <ul class=menu> <li>
I am writing a css code for a webpage, i have a navigation menu
I am looking for good Visual Studio 6 Addins for code navigation and exploring.
I am interested in the following features: Code highlighting, Intellisense, Refactorings, Code navigation (Go

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.