CSS Selector :before
Description
The :before
selector inserts content before
the content of the selected elements.
Example
<!DOCTYPE html>
<html>
<head>
<style>
p:before{<!-- ww w . j a v a 2 s .com-->
content:"added before";
}
</style>
</head>
<body>
<p>this is a paragraph.</p>
</body>
</html>
The code above generates the following result.