CSS Properties: How to specify a 3D groove top border?
Solution:
HTML Code:
Explanation:
- The HTML document structure includes essential elements such as html, head, title, style, and body.
- CSS rules are defined to specify different border styles for h1 elements based on their classes.
- The .abc class is used to apply a groove top border style to h1 elements and set the top border color to a shade of green.
- Comments were added below the code line as requested.
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.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics