Back to Cosmos

CSS Basics: Borders

code/html/css/border/README.md

latest1023 B
Original Source

CSS Basics: Borders

CSS Borders are used to create border around any HTML Tag. Borders include following feature:

  • Style: The type of border you want as in solid, dashed etc. It is a compulsory attribute for border.
  • width: It defines the thickness of the border. It is an optional attribute and has inbuilt default value.
  • Color: It defines the color of the border. Default color is black.
  • Radius: A new feature supported by latest web browsers is adding a rounded edge to borders.

Table of contents:

1. Border-style

2. Border-width

3. Border-Color

4. Individual Border

5. Shorthand property

Rounded Borders