
Gabriel F. answered 11/04/19
UI Engineer
Hi there. As the name suggests, a css selector is used to select an element (or elements) from the DOM and have their CSS properties and values set (or changed) inside the rule. A selector can be an HTML tag name, an id, a class, and other attributes or terms that tell the browser what part of the HTML is being selected. For instance, the ruleset below targets all elements with the article class (the selector) and sets their width to 200px and their padding to 10px.
I hope this helps.