This page is part of the CSS3.info CSS selectors test. See more info on CSS3 selectors.

  1. div[align] {
    }
    
    <div align='left'></div>

    The CSS selector should match the HTML fragment because the align attribute is present and contains a value

  2. div[align] {
    }
    
    <div align=''></div>

    The CSS selector should match the HTML fragment because the align attribute is present and is empty

  3. div[align] {
    }
    
    <div align></div>

    The CSS selector should match the HTML fragment because the align attribute is present

  4. div[align] {
    }
    
    <div ALIGN='left'></div>

    The CSS selector should match the HTML fragment because attributes names are case insensitive in HTML documents

  5. div[align] {
    }
    
    <div alignment='left'></div>

    The CSS selector should not match the HTML fragment because it does not have the correct attribute

  6. div[align] {
    }
    
    <div verticalalign='left'></div>

    The CSS selector should not match the HTML fragment because it does not have the correct attribute

  7. div[align] {
    }
    
    <div></div>

    The CSS selector should not match the HTML fragment because it does not have the correct attribute