CSS05

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title></title>
<style type="text/css">
<!--
h2 {
	color: white;
	font-size: 1.6em;
	font-weight: bolder; 
	background-color: #006AB8;
}
p {
	font-size; 1em;
	font-weight: 600;
	background-color: #BBD5EC
}
h2,p {
	margin: 0;
	padding: 1em;
}
-->
</style>
</head>
<body>
<h2>background-colorの設定</h2>

<p>見出しには濃いめの色を背景に指定し、文字を白抜きにします。段落には見出しよりも薄い色を指定します。さらに見出しと段落の上下のマージンを0にして、ボックスの上下をくっつけ、パディングを1em指定します。</p>
</body>
</html>