<!DOCTYPE html>
<html>
<head>
<title>CSS attr Selector</title>
<style type="text/css">
a[href] {
color:#ff0000;
}
</style>
</head>
<body>
<a href="http://www.google.com">Google</a>
<a href="http://www.way2tutorial.com">Way2Tutorial</a>
<a href="#">HTML</a>
</body>
</html>