How do I identify a CSS selector?

How do I identify a CSS selector?

The easiest way to find the CSS Selector of an element is by right clicking over the required element in the Chrome Browser. Once you right click an Inspect menu item comes up.

Now select Inspect and choose Copy → Copy Selector. This will copy the CSSSelector of the element in the buffer, post that you can use the same in your code.