In this article we will see a simple way of making text of different colors when we write a web page in HTML.
In order to do this, we will use the <font> label, as in the following example:
In this code the word red indicates to the browser the color of the text, which in this case will look like this:
The following list contains the most frequently used colors. In some cases a gray background was added so that the letters could be better distinguished:
- Orange
- Pink
- Red
- Yellow
- White
- Black
- Brown
- Blue
- Green
- Turquoise
- Gray
In order to make any of this colors you just need to write its name in the color attribute of the <font> label, as seen in the code of the previous example.