<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://de.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Enzyklop%C3%A4die_CSS%3A_color</id>
	<title>Enzyklopädie CSS: color - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://de.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=Enzyklop%C3%A4die_CSS%3A_color"/>
	<link rel="alternate" type="text/html" href="https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;action=history"/>
	<updated>2026-04-11T14:41:44Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in WikiJournal</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=497&amp;oldid=prev</id>
		<title>Admin: Textersetzung - „&lt;syntaxhighlight lang=&quot;css&quot;&gt;“ durch „&lt;syntaxhighlight lang=&quot;css&quot; copy&gt;“</title>
		<link rel="alternate" type="text/html" href="https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=497&amp;oldid=prev"/>
		<updated>2025-02-07T19:04:32Z</updated>

		<summary type="html">&lt;p&gt;Textersetzung - „&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;“ durch „&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot; copy&amp;gt;“&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 7. Februar 2025, 22:04 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot;&gt;Zeile 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== CSS ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== CSS ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;css&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;css&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;p {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;p {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     font-size: 16px;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     font-size: 16px;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot;&gt;Zeile 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel mit Variablen ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel mit Variablen ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;css&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;css&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:root {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:root {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     --primary-color: #3498db;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     --primary-color: #3498db;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikijournal_org-de__:diff:1.41:old-495:rev-497:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=495&amp;oldid=prev</id>
		<title>Admin: Textersetzung - „&lt;syntaxhighlight lang=&quot;html&quot;&gt;“ durch „&lt;syntaxhighlight lang=&quot;html&quot; copy&gt;“</title>
		<link rel="alternate" type="text/html" href="https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=495&amp;oldid=prev"/>
		<updated>2025-02-07T19:03:55Z</updated>

		<summary type="html">&lt;p&gt;Textersetzung - „&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;“ durch „&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; copy&amp;gt;“&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 7. Februar 2025, 22:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Zeile 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel für die Verwendung ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Beispiel für die Verwendung ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== HTML ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== HTML ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;html&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;html&quot; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;p class=&amp;quot;example1&amp;quot;&amp;gt;Dieser Text ist rot.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;lt;p class=&amp;quot;example1&amp;quot;&amp;gt;Dieser Text ist rot.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=266&amp;oldid=prev</id>
		<title>Philip am 23. Januar 2025 um 12:35 Uhr</title>
		<link rel="alternate" type="text/html" href="https://de.wikijournal.org/w-wiki/index.php?title=Enzyklop%C3%A4die_CSS:_color&amp;diff=266&amp;oldid=prev"/>
		<updated>2025-01-23T12:35:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Programmierung&lt;br /&gt;
|name = CSS: color&lt;br /&gt;
|bild = Css.png&lt;br /&gt;
|portal = [[Portal:CSS|CSS-Portal]] • [[Portal:Webentwickler|Portal für Webentwickler]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Die Eigenschaft color&amp;#039;&amp;#039;&amp;#039; in CSS legt die Textfarbe eines Elements fest. Sie wird verwendet, um Texte zu gestalten, und unterstützt sowohl einfache Farbnamen als auch komplexere Formate wie RGB, HEX, HSL und andere. Es handelt sich um eine der grundlegendsten und am häufigsten verwendeten Eigenschaften in der Webentwicklung.&lt;br /&gt;
&lt;br /&gt;
== Farbformate ==&lt;br /&gt;
Die Eigenschaft &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; unterstützt verschiedene Möglichkeiten zur Definition von Farben:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Farbnamen&amp;#039;&amp;#039;&amp;#039;: Einfache Namen wie &amp;lt;code&amp;gt;red&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;blue&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;green&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HEX-Farbcode&amp;#039;&amp;#039;&amp;#039;: Hexadezimale Schreibweise, z. B. &amp;lt;code&amp;gt;#ff0000&amp;lt;/code&amp;gt; (Rot).&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;RGB&amp;#039;&amp;#039;&amp;#039;: Angabe im Format &amp;lt;code&amp;gt;rgb(255, 0, 0)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;RGBA&amp;#039;&amp;#039;&amp;#039;: Ähnlich wie RGB, jedoch mit Transparenz, z. B. &amp;lt;code&amp;gt;rgba(255, 0, 0, 0.5)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HSL&amp;#039;&amp;#039;&amp;#039;: Definition der Farbe durch Farbton, Sättigung und Helligkeit, z. B. &amp;lt;code&amp;gt;hsl(0, 100%, 50%)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;HSLA&amp;#039;&amp;#039;&amp;#039;: HSL mit Transparenz, z. B. &amp;lt;code&amp;gt;hsla(0, 100%, 50%, 0.5)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;CSS-Variablen&amp;#039;&amp;#039;&amp;#039;: Farben können mit Variablen definiert werden, z. B. &amp;lt;code&amp;gt;var(--main-color)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Beispiel für die Verwendung ==&lt;br /&gt;
=== HTML ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example1&amp;quot;&amp;gt;Dieser Text ist rot.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example2&amp;quot;&amp;gt;Dieser Text ist blau.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example3&amp;quot;&amp;gt;Dieser Text ist grün.&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;example4&amp;quot;&amp;gt;Dieser Text ist orange mit Transparenz.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== CSS ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
p {&lt;br /&gt;
    font-size: 16px;&lt;br /&gt;
    font-family: Arial, sans-serif;&lt;br /&gt;
    line-height: 1.5;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example1 {&lt;br /&gt;
    color: red; /* Farbnamen */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example2 {&lt;br /&gt;
    color: #0000ff; /* HEX-Farbcode */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example3 {&lt;br /&gt;
    color: rgb(0, 255, 0); /* RGB */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.example4 {&lt;br /&gt;
    color: rgba(255, 165, 0, 0.8); /* RGBA */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unterstützung durch Browser ==&lt;br /&gt;
Die Eigenschaft &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; wird von allen modernen Browsern, einschließlich mobiler Versionen, unterstützt. Sie gehört zu den grundlegenden CSS-Eigenschaften und ist sogar in den ältesten Browser-Versionen verfügbar.&lt;br /&gt;
&lt;br /&gt;
== Hinweise ==&lt;br /&gt;
* Die Textfarbe eines Elements kann von einem übergeordneten Element vererbt werden, wenn sie nicht explizit festgelegt wird.&lt;br /&gt;
* Für komplexere Farbeffekte (z. B. Farbverläufe) verwenden Sie die Eigenschaft &amp;lt;code&amp;gt;background&amp;lt;/code&amp;gt; oder &amp;lt;code&amp;gt;background-image&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Nützliche Tipps ==&lt;br /&gt;
* Verwenden Sie semantische Farbvariablen wie &amp;lt;code&amp;gt;--main-color&amp;lt;/code&amp;gt;, um das Farbschema Ihrer Website einfacher verwalten zu können.&lt;br /&gt;
* Überprüfen Sie den Kontrast zwischen Text und Hintergrund, um eine gute Lesbarkeit zu gewährleisten (z. B. mit dem [https://webaim.org/resources/contrastchecker/ WebAIM Contrast Checker]).&lt;br /&gt;
&lt;br /&gt;
== Beispiel mit Variablen ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
:root {&lt;br /&gt;
    --primary-color: #3498db;&lt;br /&gt;
    --secondary-color: #2ecc71;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
h1 {&lt;br /&gt;
    color: var(--primary-color);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p {&lt;br /&gt;
    color: var(--secondary-color);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In diesem Beispiel werden CSS-Variablen zur Definition der Hauptfarben verwendet:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;:root&amp;lt;/code&amp;gt; ist ein Pseudoklasse, die das Wurzelelement des Dokuments darstellt (normalerweise &amp;lt;code&amp;gt;&amp;amp;lt;html&amp;amp;gt;&amp;lt;/code&amp;gt;). Variablen, die in &amp;lt;code&amp;gt;:root&amp;lt;/code&amp;gt; definiert werden, sind auf der gesamten Website verfügbar.&lt;br /&gt;
* &amp;lt;code&amp;gt;--primary-color&amp;lt;/code&amp;gt; und &amp;lt;code&amp;gt;--secondary-color&amp;lt;/code&amp;gt; sind benutzerdefinierte Variablen, die Farbwerte enthalten. Sie können für bestimmte Bereiche der Website überschrieben werden, falls nötig.&lt;br /&gt;
* In den Regeln für &amp;lt;code&amp;gt;h1&amp;lt;/code&amp;gt; und &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; wird die Funktion &amp;lt;code&amp;gt;var()&amp;lt;/code&amp;gt; verwendet, um die Werte der Variablen auf die &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt;-Eigenschaft anzuwenden.&lt;br /&gt;
&lt;br /&gt;
Dies ist eine praktische Methode, um die Farbpalette Ihrer Website zu organisieren. Beispielsweise können Sie den Hauptfarbton des Designs einfach ändern, indem Sie den Wert der Variablen an einer zentralen Stelle bearbeiten. Die Änderungen werden automatisch auf alle Elemente angewendet, die die Variable verwenden.&lt;br /&gt;
&lt;br /&gt;
Variablen sind besonders nützlich für die Erstellung von Designs mit Themen (z. B. helle/dunkle Themen), da sie es einfach machen, Farbwerte basierend auf Benutzerpräferenzen zu ändern.&lt;br /&gt;
&lt;br /&gt;
== Fazit ==&lt;br /&gt;
Die Eigenschaft &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; ist ein unverzichtbarer Bestandteil von CSS und ermöglicht eine effiziente Steuerung der Textfarben auf Webseiten. Sie unterstützt verschiedene Formate, was sie für jedes Projekt vielseitig einsetzbar macht.&lt;br /&gt;
&lt;br /&gt;
== Weitere Artikel zu CSS ==&lt;br /&gt;
{{Enzyklopädie CSS/Navigation}}&lt;br /&gt;
{{Vorlage:Navigationsleiste/CSS}}&lt;br /&gt;
[[wj-en:Encyclopedia CSS: color]]&lt;br /&gt;
[[wj-ru:Энциклопедия CSS: color]]&lt;br /&gt;
[[wj-es:Enciclopedia CSS: color]]&lt;br /&gt;
[[wj-it:Enciclopedia CSS: color]]&lt;br /&gt;
[[wj-fr:Encyclopédie CSS: color]]&lt;br /&gt;
[[Kategorie:CSS]]&lt;/div&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
</feed>