To select elements by class value the .
symbol + value can be used. For example, .product
would select any element that contains product
in the class
attribute:
Note that this selector matches any element that contains a class value in the class list (separated by spaces).
To match elements that contain the exact class value the predicate syntax can be used: