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">
		<link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
		<title>background-color</title>
		<style>
body   { 
	background-color: DeepSkyBlue; 
	color: midnightblue;
}
p    { 
	background-color: #222;
	color: #bbb;
} 
		</style> 
	</head>
	<body>
		<h1>Hintergrundfarben festlegen</h1>
		<main>
			<p>Dieses Beispiel demonstriert die Wirkung der Eigenschaft <code>background-color</code>.</p>
		</main>
	</body>
</html>