Here is the first li-element with id="myId" is selected with the css: #myId { background: #e3e3e3; } Ask yourself: do I absolutely need to apply an id to this element in order to target it?