Yes, that is one of many valid ways of selecting the <li>
tag. You could also simply use #no
, since IDs are unique within the document, unless you specifically need to apply styles to only #no
contained within #exp1 #yes
.
1
solved How do you name these tags in CSS? [closed]