Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

first-child

The :first-child pseudo-class allows you to apply a style to the first child of a tag. For example:

body:first-child {text-style: bold;}

This makes sure that the first child tag of body displays in bold. You might use this if you want the first paragraph of a document to look different from the remaining paragraphs.