CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS border Property

CSS border Property



The border property is used to make a border around the element. It is a shorthand property for:-

  1. border-width
  2. border-style
  3. border-color




Its syntax is:- borderborder-width border-style border-color;


Further Explanation:-


Value Description
border-width Specifies the width of the border.
border-style Specifies the style of the border.
border-color Specifies the color of the border.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS