CSS Filter: Namespace Attribute Selector
Rule: html[xmlns] body { background: #90EE90; color: #000; font-family: sans-serif; }
If the browser supports the above rule, the page’s background should be a light green and the text should be sans-serif.—saila.com
Applies the styles
- Internet Explorer 7 (Windows)
- Mozilla-based browsers (Mozilla 1.0+, Netscape 6+, Firefox, etc.)
- Safari 1.0
Does not apply the styles
- Internet Explorer 4 – 6 (Windows)
- Internet Explorer 5.x (Macintosh)
- Netscape 4.x
- Opera 5 – 7.x
Thanks to all those who helped test.
Validate: XHTML 1.0 (Strict) and CSS2