Оновлено: 19.05.2025
color
Визначає колір тексту елемента.
📄 Коротка інформація
| Значення за замовчуванням | Залежить від налаштувань браузера, зазвичай чорний колір |
| Успадковується | Так |
| Застосовується | До всіх елементів |
| Анімується | Так |
⌨️ Синтаксис
color: <color> | transparent
⚙️ Значення
| <колір> | Див. колір |
| transparent | Встановлює прозорий колір. |
📋 Приклад
<!DOCTYPE html>
<html>
<head>
<metacharset="utf-8">
<title>color</title>
<style>
p::first-letter {
color: #f15a22; /* Symbol color */
font-size: 2em /* Font size */
}
p {
color: rgb(0, 113, 181); /* Text color */
}
</style>
</head>
<body>
<p>The phenomenon of the cultural order mezzo forte causes
unchanged microchromatic interval. These words are completely
are valid, but the octave is unchanged. legato uses
odd dynamic ellipsis. Cluster vibrato builds an invariable layer.</p>
<p>The sound sequence, no matter how paradoxical it may seem, is uneven.
Expanding on this theme, the pentatonic scale has a midi controller. Aleatorica
brightens the mirror flageolet. Vector-mirror synchronicity
free. The arpeggio polyfigure evokes the scale channel, and here
we see the same canonical sequence with a multidirectional step
individual links.</p>
</body>
</html>