CSS - Syntax


A CSS rule-set consists of a selector and a declaration block.A style rule is made of three parts :

  • Selector
  • A selector is an HTML tag at which a style will be applied.

  • Property
  • A property is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted into CSS properties.

  • Value
  • Values are assigned to properties.

Syntax

selector { property : value ; }


Example
h1{color:blue;}

Learn All in Tamil © Designed & Developed By Tutor Joes