-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
CSS Basics
CSS Styling Properties
CSS Box Model
CSS Margin
CSS Padding
CSS Borders
CSS Outline
CSS Height/Width
CSS Max-width
CSS Display
CSS Position
CSS Z-index
CSS Overflow
CSS Float
CSS Inline-block
CSS Align
CSS Box Sizing
CSS Text
CSS Fonts
CSS Icons
CSS Text Effects
CSS Web Fonts
CSS Colors
CSS Backgrounds
CSS Color Keywords
CSS Gradients
CSS Shadows
CSS Links
CSS Lists
CSS Tables
CSS Advanced Selectors & Features
CSS Combinators
CSS Pseudo-classes
CSS Pseudo-elements
CSS Attribute Selectors
CSS Specificity
CSS !important
CSS Units
CSS Variables
CSS @property
CSS Math Functions
CSS Media and Image Styling
CSS Image Styling
CSS Image Centering
CSS Image Filters
CSS Image Shapes
CSS object-fit
CSS object-position
CSS Masking
CSS Layout Techniques
CSS Website Layout
CSS Navigation Bar
CSS Dropdowns
CSS Image Gallery
CSS Counters
CSS Pagination
CSS Multiple Columns
CSS User Interface
CSS Flexbox
CSS Grid
CSS Responsive Design (RWD)
CSS Color Keywords are predefined color names that browsers recognize. They allow you to apply colors using plain language like red
, blue
, gold
, etc., instead of using HEX, RGB, or HSL values.
CSS supports 140+ standard color keywords.
Color Name | Preview |
---|---|
red |
🔴 Red |
green |
🟢 Green |
blue |
🔵 Blue |
yellow |
🟡 Yellow |
black |
⚫ Black |
white |
⚪ White |
gray |
⚫ Gray |
orange |
🟠 Orange |
purple |
🟣 Purple |
pink |
🌸 Pink |
cyan |
🔷 Cyan |
lime |
🟩 Lime |
gold |
💛 Gold |
navy |
🔵 Navy Blue |
teal |
🟩 Teal |
maroon |
🟥 Maroon |
olive |
🟨 Olive |
silver |
⚪ Silver |
aqua |
🔹 Aqua |
h1 {
color: crimson;
}
div {
background-color: lightgreen;
}
button {
border: 2px solid navy;
}
transparent
and currentColor
transparent
: Makes the element background invisible
currentColor
: Inherits the current color
value
p {
background-color: transparent;
border: 1px solid currentColor;
}
Q1. Set <h2>
text color to blue
.
Q2. Use tomato
color for the background of a paragraph.
Q3. Add a gold
border to a button.
Q4. Make the background of a box transparent
.
Q5. Apply maroon
color to heading text.
Q6. Use currentColor
to match border with text.
Q7. Change a div’s background to lime
.
Q8. Set the text color of a link to navy
.
Q9. Use orange
as the background of a section.
Q10. Create a card with white
text and black
background.
CSS Basics
CSS Styling Properties
CSS Box Model
CSS Margin
CSS Padding
CSS Borders
CSS Outline
CSS Height/Width
CSS Max-width
CSS Display
CSS Position
CSS Z-index
CSS Overflow
CSS Float
CSS Inline-block
CSS Align
CSS Box Sizing
CSS Text
CSS Fonts
CSS Icons
CSS Text Effects
CSS Web Fonts
CSS Colors
CSS Backgrounds
CSS Color Keywords
CSS Gradients
CSS Shadows
CSS Links
CSS Lists
CSS Tables
CSS Advanced Selectors & Features
CSS Combinators
CSS Pseudo-classes
CSS Pseudo-elements
CSS Attribute Selectors
CSS Specificity
CSS !important
CSS Units
CSS Variables
CSS @property
CSS Math Functions
CSS Media and Image Styling
CSS Image Styling
CSS Image Centering
CSS Image Filters
CSS Image Shapes
CSS object-fit
CSS object-position
CSS Masking
CSS Layout Techniques
CSS Website Layout
CSS Navigation Bar
CSS Dropdowns
CSS Image Gallery
CSS Counters
CSS Pagination
CSS Multiple Columns
CSS User Interface
CSS Flexbox
CSS Grid
CSS Responsive Design (RWD)