![]() ![]() This paragraph has a light blue background color. In the example below, we’ve added a background color of light blue to a paragraph element. The style attribute is used to add style to an HTML element. To add a background color to your HTML document, you need to use the style attribute. By default, the background color of an HTML document is white. Here’s a list of some of the most common CSS color codes:Īdding a background color to your HTML document is a great way to make it look more professional and unique. These color names are case-insensitive, so you can use them in either upper- or lower-case. For example, the color black would be written as RGB(0,0,0), and the color white would be RGB(255,255,255).įinally, you can also use the predefined color names that are available in CSS. RGB values are always written as three numbers, each between 0 and 255. RGB stands for red, green, and blue, and is a way of mixing these three colors to create any color you want. You can also use RGB values to specify colors. Hex codes can be written with either upper- or lower-case letters. The most common is to use a hex code, which is a six-digit code that represents a specific color. There are a few different ways to specify colors in CSS. After all, color is one of the most important aspects of design! If you’re working with CSS, it’s important to have a good understanding of color codes. They are easy to use and there are a wide variety of colors to choose from. Css color codes are a great way to add color to your web pages. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |