【How-to】Which part of a style rule defines the elements to which the style rule applies

A CSS rule has three parts, a Selector, a Property, and a Value. The Selector can be a HTML selector, a Class selector, or an ID selector. You separate the Property and Value from the Selector by enclosing them in curly brackets, a left curly bracket first { and a right curly bracket to close the rule }

You Might Also Like