Click the button to add a background color to the second child node (index 1) of div.

First p element

Second p element

Note: Whitespace inside elements is considered as text, and text is considered as nodes. In this example, index 0, 2 and 4 in DIV are text nodes.