Youssef Sherif
4 months ago
Youssefcountry asked

What does immediate child mean in HTML?

Abhay Jajodia
Expert
2 months ago
Abhay Jajodia answered

Hi Youssef,

An immediate child is an element that is directly inside another element, with nothing in between.

Example:

  • Item

  • is the immediate child of
      because it is directly inside it.

      If it was like this:

      • Item

      Then

    • is not an immediate child of
        . The
        is.

        If you have more questions, I am here to help 😊

  • HTML
    This question was asked as part of the Learn HTML course.