Beispiel:CSS2 background-color.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de"> 
	<head> 
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>background-color</title>
		<style>
body   { 
	background-color: skyBlue; 
	color: midnightblue;
}
p    { 
	background-color: #123;
	color: oklch(90% 0.15 95);
} 
		</style> 
	</head>
<body><h1>Hintergrundfarben festlegen</h1>

<p>Dieses Beispiel demonstriert die Wirkung der Eigenschaft <code>background-color</code>.</p>

</body>
</html>