একটি উপাদানের আগে কিছু বিষয়বস্তু সন্নিবেশ করতে এই উপাদানটি ব্যবহার করুন। নিচের উদাহরণটি দেখায় যে কোন উপাদানে কিছু বিষয়বস্তু যোগ করতে :before উপাদানটি কীভাবে ব্যবহার করতে হয়।
উদাহরণ
<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>