
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Set the color of the border with CSS
The border-color property specifies the color of a border. You can try to run the following code to implement the border-color property:
Example
<html> <head> <style> p.demo { border:2px dashed; border-color:#800000; } </style> </head> <body> <p class = "demo"> David Beckham is a legend. </p> </body> </html>
- Related Articles
- Set the color of the right border using CSS
- Change the color of right border with CSS
- Change the color of top border with CSS
- Change the color of the bottom border with CSS
- Change the color of the left border with CSS
- Set the style of the border with CSS
- Set the Color of links with CSS
- Set the color of the outline with CSS
- Set the width of image border with CSS
- How to set the color of the top border with JavaScript?
- How to set the color of the right border with JavaScript?
- How to set the color of the left border with JavaScript?
- Set the link color with CSS
- Animate border-color property with CSS
- Set the border image width with CSS

Advertisements