From c0b37c4297a416dda805d08cec03c0ab42d36476 Mon Sep 17 00:00:00 2001 From: Narendra Dhangar <161828345+narendra-dhangar@users.noreply.github.com> Date: Fri, 3 Oct 2025 08:34:55 +0530 Subject: [PATCH 1/2] Update color-names.md --- docs/css/colors/color-names.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/css/colors/color-names.md b/docs/css/colors/color-names.md index a1bae0e..4f73e09 100644 --- a/docs/css/colors/color-names.md +++ b/docs/css/colors/color-names.md @@ -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. +
## Syntax @@ -63,6 +65,7 @@ In the HTML code below, the CSS rule will set the color of the `

` element to ::: +
+
:::note Extra Information **1. How many way to use color in CSS?** @@ -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. \ No newline at end of file +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. From 93bb53c7ee5c4cf3531327278b08af85b0dcaa1f Mon Sep 17 00:00:00 2001 From: Narendra Dhangar <161828345+narendra-dhangar@users.noreply.github.com> Date: Fri, 3 Oct 2025 08:48:36 +0530 Subject: [PATCH 2/2] Update color-names.md --- docs/css/colors/color-names.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/css/colors/color-names.md b/docs/css/colors/color-names.md index 4f73e09..5db5930 100644 --- a/docs/css/colors/color-names.md +++ b/docs/css/colors/color-names.md @@ -65,7 +65,7 @@ In the HTML code below, the CSS rule will set the color of the `

` element to ::: -
### List of Common Color Names @@ -80,6 +80,7 @@ Here are some common CSS color names: You can use these color names in your CSS stylesheets to set the color of elements and create visually appealing designs. Color names provide a convenient way to specify colors in CSS and make it easier to work with colors in web development projects. +
### Example: Using Color Names