What are CSS selectors

You are here:
Estimated reading time: < 1 min

Our Javascript SDK works with standard CSS selectors that you can learn about anywhere else. We won’t try to explain in detail about CSS selectors, because they require a bit of HTML knowledge, but a short explanation is required:

In CSS, selectors are patterns used to select the element(s) you want to style.

Classes: They look like .class-name and can be multiple results on one page

Element ID: They look like #element-id and only one element should be found on a page.

To learn more about CSS selectors visit these resources: test

Mozilla.org

W3Schools

Was this article helpful?
Dislike 0
Views: 10