html基础知识(三种颜色写法)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
/* 颜色的三种写法:
1、英文单词写法:如 red
2.数字写法 由0-9,a-f组成
3.rgb三原色表示法 取值范围:0-255 */
div{
/* background-color: red; 红色*/
/* background-color: #000000; 黑色 */
/* background-color: rgb(0,0,0); 黑色*/
}


</style>
</head>
<body>
<div>1</div>
</body>
</html>

原文地址:https://www.cnblogs.com/wsx123/p/15722951.html