May 03, 2021 CSS
2. HTML element styles with specific properties
4. Property and value selectors
As the name implies, a CSS property selector means that an element can be selected based on its properties and property values.
HTML element styles with specific properties are more than just class and id.
Note: I E7 and IE8 need to declare! D OCTYPE supports property selectors! Property selectors are not supported for IE6 and earlier versions.
The following example is to turn all elements containing the title blue:
The following example
title='w3cschool'
element:
The following is an example of an element
title
the title property that specifies a value,
~
property and the value with ( . . . .
The following is an example of an
lang
that contains the lang property of a specified
|
Separate properties and values:
Property selector styles do not need to be in the form of class or id:
CSS Reference Manual: CSS (attribute| .value) selector