Selector
Meaning in web development, with examples
In web development, selector means: The part of a CSS rule that says which elements the styles apply to, for example p, .button or #header.
In Turkish: seçici, selector
How it is used
Developers write, combine and simplify selectors, and the same selectors are used in JavaScript with querySelector(). Common types are element, class, ID, attribute and pseudo-class selectors.
Example sentences
This selector is too specific; just use the class name.
The test fails because the selector no longer matches any element.
Common collocations
- CSS selector
- class selector
- ID selector
- match a selector
- complex selector
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: CSS and Layout
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
