background-colorで虹の色

スポンサーリンク
<!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>
</head>
<style>
#a{background-color:#F00;width:300px; height:80px; padding:15px;}
#d{background-color:#F60;width:300px; height:80px; padding:15px;}
#k{background-color:#FF0;width:300px; height:80px; padding:15px;}
#m{background-color:#0F0;width:300px; height:80px; padding:15px;}
#ao{background-color:#00F;width:300px; height:80px; padding:15px;}
#ai{background-color:#63F;width:300px; height:80px; padding:15px;}
#mura{background-color:#F0F;width:300px; height:80px; padding:15px;}
p,h2{text-align:center}
</style>
<body>
<br />
<div id ="a">
<h2>赤</h2>
<p>虹の色一色目</p>
</div>
<div id ="d">
<h2>橙</h2>
<p>虹の色二色目</p>
</div>
<div id ="k">
<h2>黄</h2>
<p>虹の色三色目</p>
</div>
<div id ="m">
<h2>緑</h2>
<p>虹の色四色目</p>
</div>
<div id ="ao">
<h2>青</h2>
<p>虹の色五色目</p>
</div>
<div id ="ai">
<h2>藍</h2>
<p>虹の色六色目</p>
</div>
<div id ="mura">
<h2>紫</h2>
<p>虹の色七色目</p>
</div>
</body>
</html>