CSS border width

CSS border width is used to give the width of border for HTML element.


Syntax

Output

This is the paragraph to show border width property of CSS.


CSS border width values list

Sr. No. value Description
1 width Used to give width of border. The value for this can be in pixel format or percentage format.
2 initial Used to define as the property initial value.
2 inherit Used to define the computed value of property on the elements parent.