Is it possible to specify a style for an element:

<li class="new" id="lib"></li> 

So that id and class are in a bundle, that is #new.lib {style} .

For the rule to work only if the li element has an ID and a class ID.

    1 answer 1

    Yes, li#new.lib {...} , but why? ID is already a unique attribute, so #new {...} will be enough.