Copying Selectors
Do you know that Chrome provides you with element selectors?
Next time, you don’t have to figure it out on your own 😁.
Try
- Open Elements panel in Dev Tools
- Right-click on the node for the button or text below it to get it’s selector
- Choose
Copy -> Copy Selector
The CSS selector for that element will be copied to your clipboard.
Sample ButtonWhat is my selector?