CSS Selectors



The program tells me that I didn't underline the text in the "li" tags but this is the right code. Why doesn't it work? This is the error message I get. Oops, try again. Did you remember to set the paragraphs inside "li" tags to the text-decoration: underline;?

li {
    font-weight: bold;
    text-decoration: underline;


You need to target the <p> tags inside your <li> tag. So your selector should be li p or something like that.


It worked, Thanks!!!:grinning:


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