HTML and CSS Reference
In-Depth Information
[att~=val]
Selects elements with the attribute att whose value includes the word
val in its space-delimited list of words. (Think multiple class names.)
a[rel~=friend] {} /* matches anchors with copyright as one
of many words in the rel attribute. For example, XFN's
rel=”met friend”. */
[att|=val]
Selects elements with the attribute att whose value equals val or begins
with val followed by the separator - . This is intended to be used to
match the language subcode for the hreflang attribute.
*[hreflang|=en] {} /* matches all elements with hreflang en,
en-us, en-au, and en-gb */
[att^=val]
Selects elements with the attribute att whose value begins with val .
Added in CSS3.
a[href^=http] {} /* matches all links that begin with text
“http” */
[att$=val]
Selects elements with the attribute att whose value ends with val .
Added in CSS3.
a[href$=.pdf] {} /* matches all links to PDF files */
[att*=val]
Selects elements with the attribute att whose value contains the
substring val anywhere within it. Added in CSS3.
 
 
 
 
 
Search WWH ::




Custom Search