Home | Computer Science

<
CSS Border-Width

Defination

The border-width property sets the width of an element's


BORDER BASIC Syntax of Border is
h1{
border-style: ;
border-width: ;
}
Different types of Border Width
For eg:
Program
INPUT

<!DOCTYPE html> <html> <head> <style> p.one { border-style: solid; border-width: 5px; } p.two { border-style: solid; border-width: medium; } p.three { border-style: dotted; border-width: 2px; } p.four { border-style: dotted; border-width: thick; } </style> </head> <body> <p class="one">Some text.</p> <p class="two">Some text.</p> <p class="three">Some text.</p> <p class="four">Some text.</p> </body> </html>

OUTPUT