NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.
<style type="text/css"></head>
<!--</style>
p:first-child { color: red;}-->
<p>I should be red because I am the first child of div.</p></div>
<p>Second child of div, thus not red.</p>