![]() By using the simple color property, you will change the color of the text.īoth HTML background color and color properties can take values defined in names, RGB, RGBA, HEX, HSL or HSLA values. As the name suggests, the first one is used to change the color of the background. Heres an example: To get the Green component, youd do a bit shift like this: 14822282 > 8 Only take the byte value and convert it to hex, which will give you 0x2B, which is the G component of RGB. There are a couple of properties you can use to define color – HTML background-color and HTML color. You can then concatenate the hex values together and that will get you your HTML hex value. Both of these properties take color names, RGB, RGBA, HEX, HSL or HSLA values. You may use the color property to change the color of your text, or background-color to change the color of the background. This means you need to use the style attribute in the opening tag you wish to add HTML color to. Coloring your website is a part of CSS inline styling. There is no special HTML color tag, as design is not the main function of HTML.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |