This page is part of the CSS3.info CSS selectors test. See more info on CSS3 selectors.
div[align=left] {
}
<div align='left'></div>
The CSS selector should match the HTML fragment because the align attribute has the correct value
div[align=left] {
}
<div ALIGN='left'></div>
The CSS selector should match the HTML fragment because attribute names should be case insensitive in a HTML document
div[align=left] {
}
<div align='LEFT'></div>
The CSS selector should match the HTML fragment because the value of the align attribute should be case insensitive in a HTML document
div[align=left] {
}
<div align='leftorright'></div>
The CSS selector should not match the HTML fragment because the value of the align attribute is not an exact match
div[align=left] {
}
<div align='rightleft'></div>
The CSS selector should not match the HTML fragment because the value of the align attribute is not an exact match
div[align=left] {
}
<div align='right'></div>
The CSS selector should not match the HTML fragment because the value of the align attribute is completely different
div[align=left] {
}
<div alignment='left'></div>
The CSS selector should not match the HTML fragment because the attribute does not exist
div[align=left] {
}
<div verticalalign='left'></div>
The CSS selector should not match the HTML fragment because the attribute does not exist
div[align=left] {
}
<div></div>
The CSS selector should not match the HTML fragment because the attribute does not exist
div[align = left] {
}
<div align='left'></div>
The CSS selector should match the HTML fragment because the align attribute has the correct value
div[align =left] {
}
<div align='left'></div>
The CSS selector should match the HTML fragment because the align attribute has the correct value
div[align= left] {
}
<div align='left'></div>
The CSS selector should match the HTML fragment because the align attribute has the correct value
div[title=match] {
}
<div title='match'></div>
The CSS selector should match the HTML fragment because the value of the title attribute is an exact match
div[title=match] {
}
<div title='MATCH'></div>
The CSS selector should not match the HTML fragment because value of the title attribute should be compared in a case-sensitive way
div[id=match] {
}
<div id='MATCH'></div>
The CSS selector should not match the HTML fragment because value of the id attribute should be compared in a case-sensitive way
label[for=match] {
}
<label for='MATCH'></label>
The CSS selector should not match the HTML fragment because value of the for attribute should be compared in a case-sensitive way
div[align=left] {
}
<div align=' left '></div>
The CSS selector should not match the HTML fragment because the value of the align attribute is not an exact match - it is not allowed to strip whitespace in HTML documents