<!DOCTYPE html>
<html>
<head>
<title>CSS :last-of-type Selector</title>
<style>
div :last-of-type {
color: #FF0000;
}
</style>
</head>
<body>
<div>
<span>This is first span</span>
<span>This is second span</span>
<ul>
<li>first item</li>
<li>second item</li>
</ul>
<p>First Paragraph</p>
<p>Second Paragraph</p>
</div>
</body>
</html>