<img src="foo.jpg" alt="a foo" />

<style>
	img[alt] {
		border: 1px solid green;
	}

	img[alt=""] {
		border: 1px solid red;
	}
</style>
