🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Selectors
CSS selectors - CSS | MDN
January 7, 2026 - The CSS selectors module provides us with more than 60 selectors and five combinators. Other modules provide additional pseudo-class selectors and pseudo-elements. Note: This page introduces a CSS module. To find an exhaustive list of all selectors defined by CSS specifications, see the selectors ...
🌐
W3Schools
w3schools.com › cssref › css_selectors.php
CSS Selectors Reference
Use our CSS Selector Tester to demonstrate the different selectors.
🌐
Quackit
quackit.com › css › selectors
CSS Selectors - Full List
Full list of CSS selectors. Includes CSS3 and CSS4 selectors (Selectors Level 3 and Selectors Level 4)
🌐
FFFuel
fffuel.co › css-selectors
CSS Selectors: A Visual Guide & Reference | fffuel
Visual guide to CSS selectors, including pseudo-classes (:nth-child, :hover,...), functional pseudo-classes (:not, :is,...) and pseudo-elements.
🌐
CSS-Tricks
css-tricks.com › css-selectors
CSS Selectors | CSS-Tricks
May 2, 2025 - A complete guide covering all of the various methods we have to select elements in CSS and how to use them for applying styles.
🌐
W3Schools
w3schools.com › css › css_selectors.asp
CSS Selectors
Styling Links Link Buttons Code Challenge CSS Lists ... Static/Relative Position Fixed/Absolute Position Sticky Position Code Challenge CSS Position Offsets ... The var() Function Overriding Variables Variables and JavaScript Variables in MQ Code Challenge CSS @property ... CSS Templates CSS Examples CSS Editor CSS Snippets CSS Quiz CSS Exercises CSS Code Challenges CSS Website CSS Syllabus CSS Study Plan CSS Interview Prep CSS Bootcamp CSS Certificate · CSS Reference CSS Selectors CSS Combinators CSS Pseudo-classes CSS Pseudo-elements CSS At-rules CSS Functions CSS Reference Aural CSS Web Safe Fonts CSS Animatable CSS Units CSS PX-EM Converter CSS Colors CSS Color Values CSS Default Values CSS Browser Support
🌐
W3C
w3.org › TR › selectors-4
Selectors Level 4
January 22, 2026 - A comma-separated list of selectors represents the union of all elements selected by each of the individual selectors in the selector list. (A comma is U+002C.) For example, in CSS when several selectors share the same declarations, they may be grouped into a comma-separated list.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Guides › Selectors › Selectors_and_combinators
CSS selectors and combinators - CSS | MDN
CSS pseudo-elements, prefixed with two colons (::), represent entities that are not included in HTML. For example, the simple ::marker selector selects list item bullets, and the compound selector p::first-line matches the first line of all <p> elements.
Find elsewhere
🌐
Envato Tuts+
webdesign.tutsplus.com › home › web design › html/css › html
The 30 CSS Selectors You Must Memorize | Envato Tuts+
June 7, 2023 - A selector of #container > ul will only target the uls which are direct children of the div with an id of container. It will not target, for instance, the ul that is a child of the first li. Please accept marketing cookies to load this content. For this reason, there are performance benefits in using the child combinator. In fact, it’s recommended particularly when working with JavaScript-based CSS selector engines.
🌐
GeeksforGeeks
geeksforgeeks.org › css › css-selectors
CSS Selectors - GeeksforGeeks
Basic selectors in CSS are simple tools used for selecting by HTML element name (e.g., h1), class (.class Name), ID (#idName), or universally (* for all elements).
Published   2 weeks ago
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › CSS › Reference › Selectors › Selector_list
Selector list - CSS | MDN
December 16, 2025 - The CSS selector list (,) selects all the matching nodes. A selector list is a comma-separated list of selectors.
🌐
BugBug
bugbug.io › blog › software testing
CSS Selector Cheat Sheet
2 weeks ago - CSS itself does not have a built-in contains selector for text, but you can use attribute selectors to match elements based on attribute values that include specific text. ... For actual text matching, JavaScript or XPath is required. The :first-child pseudo-class targets the first child of its parent. ... This applies styles to the first <li> in a list...
🌐
Simmons University
web.simmons.edu › ~grabiner › comm244 › weekfour › selectors.html
CSS Selectors
The following is a list of the most common and well-supported CSS selectors.
🌐
Simon Fraser University
www2.cs.sfu.ca › CourseCentral › 165 › common › study-guide › content › css-selectors.html
CSS Selectors
The contextual selector (space) will select an element that's anywhere inside the element. For example, if you have a <ol> with a <ul> inside it, selecting with ol li will select the items of the <ol> as well, since they are somewhere inside the <ol>. That might not be what you intend. This CSS will separately change the appearance of list items that are immediately within <ol>s and <ul>s:
🌐
web.dev
web.dev › learn › css › selectors
Selectors | web.dev
March 29, 2021 - You can look for elements that have a certain HTML attribute, or have a certain value for an HTML attribute, using the attribute selector. Instruct CSS to look for attributes by wrapping the selector with square brackets ([ ]).
🌐
SitePoint
sitepoint.com › blog › css › css selectors cheat sheet
CSS Selectors Cheat Sheet — SitePoint
November 13, 2024 - In this example, the CSS from the previous code example will apply only to the first <div> element that has a class of box. As you can see, the second <div> element with a class of box is inside another <div> element. As a result, the styles will not apply to that element, even though it too has a class of box. Again, selectors that use this combinator can be somewhat restricting, but they can come in handy—for example, when styling nested lists...
🌐
Programiz
programiz.com › css › selectors
CSS Selectors (With Examples)
Here, the code applies CSS styling to all <h1> and <p> elements. Notice that we have used , to separate the HTML elements.. The attribute selector selects elements based on specific attribute values.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Core › Styling_basics › Basic_selectors
Basic CSS selectors - Learn web development | MDN
If you want to apply the same CSS to multiple items, you can combine individual selectors into a selector list. The rule is then applied to all the individual selectors.
🌐
BrowserStack
browserstack.com › home › guide › mastering selenium css selectors in 2026
CSS Selector in Selenium: Locate Elements with Examples | BrowserStack
December 10, 2025 - Learn to use CSS Selector in Selenium scripts for your automated tests with five types of CSS Selectors and code snippet examples.