HTML & CSS Styling CoreLesson 18Free preview
Colors & Backgrounds
This lesson is part of Intro to HTML & CSS · All levels
Summary
This material discusses how to define colors and backgrounds in CSS: hex notation, rgb/rgba, hsl, as well as background properties for colors, images, and gradations. You also stressed the importance of color contrast for accessibility. The right color combination makes the page interesting and easy to read.
Key points
- Notations of color: hex (#ff6600), rgb(), rgba() with alpha, and hsl()
- Background contains colors, images, positions, repetitions, and gradations
- Sufficient contrast of text is a prerequisite for accessibility
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.