Font color and background color settings

The code is as follows:

<!doctype html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>css</title>
      <style type="text/css">
         div{
            background-color:red;
            color:yellow;
         }
      </style>
   </head>
   <body text="red">
      <h3>静夜思</h3>
      <div>窗前明月光</div>
      <p>疑是地上霜</p>
      <div>举头望明月</div>
      <p>低头思故乡</p>
   </body>
</html>

div sets the font color div{color: color}

## Set the font color in body body{text:'color'}

The background color is backgroud-color: color

Effect display:

微信图片_20180314155620.png

#<h1 style="background-color:gray;color:blue">Set the background color to gray. Text color is blue</h1>


Display:

微信图片_20180314160104.png

# #
Continuing Learning
||
<?php echo "字体颜色背景色的设置";
submitReset Code