CSS Properties: How to specify a medium 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 set the border style to solid and the top border width to medium for h1 elements with class "xyz".
- A note is provided in the content explaining that the default value for the top border width is medium, with no border color.
- 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.