Download presentation
Presentation is loading. Please wait.
Published byAlban Mosley Modified over 8 years ago
1
ColorsColors
2
Color Keywords/Names 140 color keywords/names are defined in the HTML and CSS color specification –17 standard colors (HTML accepts 16 of 17 – excluding “orange”) –123 additional colors (CSS only) –https://developer.mozilla.org/en- US/docs/Web/CSS/color_valuehttps://developer.mozilla.org/en- US/docs/Web/CSS/color_value
3
17 Standard Color Keywords Aqua - #00FFFF Black - #000000 Blue - #0000FF Fuchsia - #FF00FF Gray - #808080 Green - #008000 Lime - #00FF00 Maroon - #800000 Navy - #000080 Olive - #808000 Orange - #FFA500 Purple - #800080 Red - #FF0000 Silver - #C0C0C0 Teal - #008080 White - #FFFFFF Yellow - #FFFF00
4
17 Standard Color Keywords
5
Color Property Format (RGB) RGB = Red Green Blue h1 { color: #f00 } /* #rgb */ h1 { color: #ff0000 } /* #rrggbb */ h1 { color: rgb(255,0,0) } h1 { color: rgb(100%, 0%, 0%) } rgb(255,255,255) = #FFF rgb(100%,100%,100%) = #FFF
6
Color Property Format (RGBA) RGBA = Red Green Blue Alpha(opacity) –Alpha values spans from 0.0 to 1.0 –0.0 = Fully Transparent –1.0 = Fully Opaque rgba(255,0,0,0.0) rgba(123,45,67,1.0) rgba(89,255,31,0.5)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.