Skip to content

Intro to CSS: Confusing part in the descendant combinator explanation #29933

@Daniel-Fdz

Description

@Daniel-Fdz

Checks

Describe your suggestion

Hello, I was reading the selectors section in the Intro to CSS lesson and in the part about the descendant combinator I found a piece of code with its explanation a bit confusing. Here I have a screenshot:

Image

If I understand properly, the div in line 5 is "element A" and the div in line 7 is "element B". In the explanation below the code it says that the elements being selected are "B" and "C". If my understanding is correct, the element selected wouldn't be "A" and "B"?

Because I see "C" as the content inside the div in line 7.

Thank you for taking the time to read this.

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-intro-to-css#selectors

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions