Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
p::before {
content: "Name -";
}
.country::before {
content: normal;
}
</style>
</head>
<body>
<h2>Пример свойства content</h2>
<p>Меня зовут Джон</p>
<p class="country">Я живу в Канаде</p>
</body>
</html>