logo htlm 5

Ejemplo de uso de background-color

Código Resultado
<html>
<head>

<style type="text/css">
body {background-color: #FFC0CB}
h2 {background-color: #FF0000}
h3 {background-color: transparent}
p {background-color: #FFA500}
</style>

</head>

<body>
Color de fondo(cuerpo):#FFC0CB
<h2>Color de fondo(h2):#FF0000</h2>
<h3>Color de fondo(h3):transparent</h3>
<p>Color de fondo(p):#FFA500</p>
</body>
</html>