[id^=product]
^=
indicates “starts with”. Conversely, $=
indicates “ends with”.
The symbols are actually borrowed from Regex syntax, where ^
and $
mean “start of string” and “end of string” respectively.
See the specs for full information.
More Related Contents:
- Why doesn’t nth-of-type/nth-child work on nested elements?
- CSS negation pseudo-class :not() for parent/ancestor elements
- How can I select the last element with a specific class, not last child inside of parent?
- How can I style even and odd elements?
- Matching the first/nth element of a certain type in the entire document
- Using CSS :before and :after pseudo-elements with inline CSS?
- Difference in applying CSS to html, body, and the universal selector *?
- How can I correctly select the first or the last child with CSS?
- A CSS selector to get last visible div
- Using :before and :after CSS selector to insert HTML [duplicate]
- What is syntax for selector in CSS for next element?
- :nth-child(even/odd) selector with class [duplicate]
- How to CSS: select element based on inner HTML [duplicate]
- What is the performance impact of the universal selector?
- What are the priorities among CSS selectors
- Why is nth-child selector not working?
- Default :target with CSS
- Can a ::before selector be used with a ?
- Avoiding repeated constants in CSS
- What is the ::content/::slotted pseudo-element and how does it work?
- Select second last element with css
- How to run the CSS3 animation to the end if the selector is not matching anymore?
- Why does the general-sibling combinator allow toggling pseudo-element’s content, but not the adjacent-sibling?
- Is there a css selector for selecting an element futherup in the html?
- Selecting the last element among various nested containers
- Is there a reason to use a instead of a:link or a:visited in my stylesheet?
- Zebra striping a flexbox table with wrapping items
- Is there a CSS not equals selector?
- How can I select elements in CSS by partial ID value?
- How can I get a specific number child using CSS?