Selector, Properties and Values | CSS Basics

preview_player
Показать описание
Syntax for CSS :
selector {property: value;}

Defining the style sheet is very easy, its rules are simple and it’s syntax contains three parts
1. Selector : It can be defined as a pattern which is applied to the elements in HTML. The selectors definition help us group the properties that are applied to HTML element. We will discuss about selectors in later chapter.
2. Property : It is a characteristic defined for HTML elements such as fonts, color, border, padding. The property are part of selector definition.
3. Value : It is the value that should be set for the HTML element.
Рекомендации по теме