You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/css/colors/color-names.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,13 @@ keywords:
12
12
css color names list,
13
13
]
14
14
sidebar_position: 1
15
+
hide_table_of_contents: true
15
16
---
16
17
17
18
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.
18
19
19
20
<AdsComponent />
21
+
<br />
20
22
21
23
## Syntax
22
24
@@ -63,6 +65,7 @@ In the HTML code below, the CSS rule will set the color of the `<h1>` element to
63
65
:::
64
66
65
67
<AdsComponent />
68
+
<br />
66
69
67
70
### List of Common Color Names
68
71
@@ -77,6 +80,7 @@ Here are some common CSS color names:
77
80
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.
78
81
79
82
<AdsComponent />
83
+
<br />
80
84
81
85
### Example: Using Color Names
82
86
@@ -128,6 +132,7 @@ In this example, the color names `blue` and `darkred` are used to set the color
128
132
Color names are a convenient way to specify colors in CSS and can be used to create visually appealing designs in web development projects.
129
133
130
134
<AdsComponent />
135
+
<br />
131
136
132
137
:::note Extra Information
133
138
**1. How many way to use color in CSS?**
@@ -197,4 +202,4 @@ By using color names in CSS, you can easily set the color of elements in your we
197
202
198
203
## Conclusion
199
204
200
-
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.
205
+
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.
0 commit comments