select the first list item code example Example: first-child p:first-child { background-color: yellow; }