Example list:

Click the button to get the HTML content of the list's last child element.

Note: The lastElementChild property is not supported in IE8 and earlier versions.