CSS Properties: Example to set the color of the left border?
Solution:
HTML Code:
Explanation:
- This HTML document illustrates how to set the color of the left border of an h1 element.
- The border style of the h1 element is set to solid.
- The color of the left border is defined as #CC63FF, which is a shade of purple.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.