1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4 <MetaCharSet= "UTF-8">5 <title>Document</title>6 7 <style>8 H1{Color:Red; } /*0, 0, 0, 1*/9 Body H1{Color:Green; } /*0, 0, 0, 2*/Ten One H2{Color:Red; } /*0, 0, 0, 1*/ A h2.test{Color:Green; } /*0, 0, 1, 1*/ - #test2{Color:Yellow; } /*0, 1, 0, 0*/ - H2{Color:Gray!important; } the H2{Color:Black!important; } - - /*style Special values are: 1, 0, 0, 0*/ - /*ID-specific values are: 0, 1, 0, 0*/ + /*attributes, attribute values, or pseudo-class particularity values are: 0, 0, 1, 0*/ - /*element-specific values are: 0, 0, 0, 1*/ + /*!important exceeding the special value*/ A /*The same particular value, or!important, which finally appears to work.*/ at </style> - </Head> - <Body> - <H1>12345</H1> - <H2class= "Test"ID= "Test2"style= "Color:blue">67890</H2> - </Body> in </HTML>
CSS particularity value