There are three ways to represent colors in HTML, the most commonly used is the 6-digit hexadecimal code representation. For example, bgcolor=#ff0000; where # simply means declaring the color using a 6-digit hexadecimal color code. The first two digits of the code, ff, represent red among the three primary colors. The range is of course 00-ff in hexadecimal. The middle two digits, 00, represent green, and the last two digits, 00, represent blue. 00 represents no color, and ff represents the strongest color. So 000000 represents black, ffffff represents white, similarly ff0000 represents pure red, 00ff00 represents pure green, and 0000ff represents pure blue. In addition, colors can also be expressed by RGB (r, g, b). The r, g, and b in the brackets represent red, green, and blue respectively using decimal numbers or percentages from 0 to 255. For example, rgb (255, 0, 0) and rgb (100%, 0%, 0%) both represent red. Colors can also be represented by color keywords, a total of 16, namely: Black#000000 Maroon dark brown#800000 Green Green#008000 Olive #808000 Navy Blue#000080 Purple Purple#800080 Teal #008080 Gray Gray#808080 Silver#C0C0C0 Red Red#FF0000 Lime #00FF00 Yellow Yellow#FFFF00 Blue #0000FF Fuchsia Magenta #FF00FF Aqua blue#00FFFF White#FFFFFF For example, you can write: bgcolor=red, which is equivalent to the following: Copy code The code is as follows:bgcolor=rgb(255,0,0),bgcolor=rgb(100%,0%,0%),bgcolor=#ff0000; |
<<: Linux completely removes node.js and reinstalls it through the yum command
>>: Thoughts and experience sharing on interactive design of reading lists for information products
It is very easy to delete a table in MySQL, but y...
I feel that the explanation of this.$set on the I...
Achieve resultsRequirements/Functionality: How to...
What is my.ini? my.ini is the configuration file ...
Table of contents Achieve results Introduction to...
1. Filter Example: <!DOCTYPE html> <html...
1. View existing modules /usr/local/nginx/sbin/ng...
This article describes the examples of creating a...
Three ways to define functions in JS Let me expla...
Limit input box to only pure numbers 1、onkeyup = ...
Need to know how many days there are before an im...
Setting up remote access in mysql5.7 is not like ...
To connect Node-red to the database (mysql), you ...
CSS3 implements 2D plane transformation and visua...
Configuration Instructions Linux system: CentOS-7...