Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/css/colors/color-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ keywords:
css color names list,
]
sidebar_position: 1
hide_table_of_contents: true
---

In CSS, color names are predefined names for colors that can be used to style elements. Color names provide an easy way to specify colors in CSS without having to remember the hexadecimal (hex) or RGB values of the colors. There are 147 color names that are supported by all major browsers, and they can be used to set the color of text, backgrounds, borders, and other CSS properties.

<AdsComponent />
<br />

## Syntax

Expand Down Expand Up @@ -63,6 +65,7 @@ In the HTML code below, the CSS rule will set the color of the `<h1>` element to
:::

<AdsComponent />
<br /

### List of Common Color Names

Expand Down Expand Up @@ -128,6 +131,7 @@ In this example, the color names `blue` and `darkred` are used to set the color
Color names are a convenient way to specify colors in CSS and can be used to create visually appealing designs in web development projects.

<AdsComponent />
<br />

:::note Extra Information
**1. How many way to use color in CSS?**
Expand Down Expand Up @@ -197,4 +201,4 @@ By using color names in CSS, you can easily set the color of elements in your we

## Conclusion

Color names are predefined names for colors that can be used in CSS to style elements. By using color names, you can specify the color of text, backgrounds, borders, and other CSS properties without having to remember specific color codes. Color names provide a convenient way to work with colors in CSS and make it easier to create visually appealing designs in web development projects.
Color names are predefined names for colors that can be used in CSS to style elements. By using color names, you can specify the color of text, backgrounds, borders, and other CSS properties without having to remember specific color codes. Color names provide a convenient way to work with colors in CSS and make it easier to create visually appealing designs in web development projects.
Loading