HTML colorLOGIN

HTML color

HTML Color

HTML Color

HTML color is a mixture of red, green, and blue.

Color Values

HTML colors are defined by a hexadecimal notation, which consists of red, green and blue values ​​​​(RGB). The minimum value for

colors is 0 (hex: #00). The maximum value is 255 (hex: #FF).

This table gives the specific effect of mixing three colors:

QQ图片20161011165139.pngQQ图片20161011165210.pngQQ图片20161011165241.pngQQ图片20161011165315.pngQQ图片20161011165336.png

Example :

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>php.cn</title> 
</head>
<body>
<p style="background-color:#00FF00; width: 200px"  >
通过十六进制设置背景颜色
</p>
<p style="background-color:rgb(0,255,0); width: 200px">
通过 rbg 值设置背景颜色
</p>
<p style="background-color:Lime ; width: 200px">
通过颜色名设置背景颜色
</p>
</body>
</html>


Next Section
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php.cn</title> </head> <body> <p style="background-color:#00FF00; width: 200px" > 通过十六进制设置背景颜色 </p> <p style="background-color:rgb(0,255,0); width: 200px"> 通过 rbg 值设置背景颜色 </p> <p style="background-color:Lime ; width: 200px"> 通过颜色名设置背景颜色 </p> </body> </html>
submitReset Code
ChapterCourseware