CSS Properties: How to specify a right double border?
Solution:
HTML Code:
Explanation:
- The HTML document is structured with essential elements such as html, head, title, style, and body.
- CSS is used to style all h1 elements, setting their border style to solid and their border width to 5 pixels.
- A specific CSS rule is defined for h1 elements with the class double, setting their right border style to double.
- The text "w3resource Tutorial" is displayed within a paragraph element, and "Double right border" is displayed within an h1 element with the class double.
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