Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>CSS Test: Attribute 'bgcolor' vs. CSS 'background-color' specificity</title>
<meta name="assert" content="Attribute 'bgcolor' has a specificity of zero and is overridden by CSS." />
<style type="text/css">
*
{
background-color: green;
}
</style>
</head>
<body bgcolor="red">
<p>Test passes if the background of this page is green.</p>
</body>
</html>