What is CSS Selector in Selenium?

What is CSS Selector in Selenium?

CSS used to create style rules in web page is leveraged to locate the desired WebElement,WebDriver use these styles to locate elements.Syntax to use CSSSelector is driver.findElement(By.cssSelector(“cssValue”));