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 the value of the align attribute should be case insensitive in a HTML document
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='leftright'></div>
The CSS selector should match the HTML fragment because the align attribute starts as expected
div[align^=left] {
}
<div align='left right'></div>
The CSS selector should match the HTML fragment because the align attribute starts as expected
div[align^=left] {
}
<div align='left-right'></div>
The CSS selector should match the HTML fragment because the align attribute starts as expected
div[align^=left] {
}
<div align='right'></div>
The CSS selector should not match the HTML fragment because the align attribute is different
div[align^=left] {
}
<div align='rightleft'></div>
The CSS selector should not match the HTML fragment because the align attribute starts differently
div[align^=left] {
}
<div align='right left'></div>
The CSS selector should not match the HTML fragment because the align attribute should not be interpreted as a space seperated list
div[align^=left] {
}
<div align='right-left'></div>
The CSS selector should not match the HTML fragment because the align attribute should not be interpreted as two components seperated by as dash
div[align^=left] {
}
<div align=''></div>
The CSS selector should not match the HTML fragment because the align attribute is empty
div[align^=left] {
}
<div></div>
The CSS selector should not match the HTML fragment because the align 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 align attribute begins different - it is not allowed to strip whitespace in HTML documents