That's simple: we iterate over each list item and find the text contained within each link. Then we use the switch construct in order to apply the appropriate CSS class depending on the text node of the links. You can see the result below.