Target ONLY the <a>s that are children of <li>s


I can't seem to style the anchor nested inside of the li element.


Oops, try again. It looks like you accidentally removed the text-decoration from the link outside the unordered list.

Is the selector below the correct way to reach the second <a> inside the <li>?

01. Set their text-decoration to none

li a > a {
    text-decoration: none;
    font-family: Cursive;


You can simply do li a.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.