DIFFERECE BETWEEN LI A AND LI > A IN CSS

Garry Winogrand

Total Post:24

Points:168
Posted by  Garry Winogrand
 1240  View(s)
Ratings:
Rate this:
Hi Exeprt,

I have seen this type line of code (li a and li > a) some where, so can you tell me what is difference between li a and li > a and which condition we apply these CSS.

Any help on above is really appreciated.
  1. Dev Patel

    Post:26

    Points:182
    Re: Differece between li a and li > a in CSS

    Hi Garry,


    There are little bit difference between  li a and li > a

    li a : here css apply only on <a> tag which under li tag
    li > a :here css apply only on li tag not <a> tag

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!