Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>CSS Selectors</title>
</head>
<body>
  <div data-color="red">This will be red</div>
  <div data-color="red">This will be red</div>
  <div data-color="blue">This will NOT be red</div>
</body>
</html>
 
div[data-color="red"] {
  color: red;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
rionmonsterpro
0viewers