किसी तत्व से पहले कुछ सामग्री सम्मिलित करने के लिए इस तत्व का उपयोग करें। निम्न उदाहरण दर्शाता है कि किसी तत्व में कुछ सामग्री जोड़ने के लिए :before element का उपयोग कैसे किया जाता है।
उदाहरण
<html>
<head>
<style>
p:before
{
content: url(/images/bullet.gif)
}
</style>
</head>
<body>
<p> This line will be preceded by a bullet.</p>
<p> This line will be preceded by a bullet.</p>
<p> This line will be preceded by a bullet.</p>
</body>
</html>