Overlapping elements

If two positioned elements overlap each other without a z-index specified, the element defined last in the HTML code will be shown on top:

Black box
Gray box
Green box