and you could add many attribute selectors, just juxtapose them
[att=val][att=val].
About
:after and
content, that should be new too.
- :after is a pseudo-format and specify the text after the selected item. There is the :before pseud-format for the text before.
- content attribute style allow to specify the content of it.
So, this
a[href^="http://"]:after { /* links that start with http:// */
content: "\0000a0\0000bb";
}
simply add "\0000a0\0000bb" which is " »" after the link text. You can't use html entities like that's why I use the correspondig hexa code \0000a0
Another interesting things is that you can reuse the value of an attribute. In this,