CSS Basics CSS structure / syntax CSS Text CSS font CSS links CSS Images CSS Tables Css Position layout

CSS Syntax

A CSS comprises of style rules that are interpreted by the browser and then applied to elements in your document. A style rule is made of three parts –


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


A property is a type of attribute of HTML tag.


Values are assigned to properties.


Try It Yourself