Editor
Download
Open
Auto Run
<!DOCTYPE html> <html> <head> <title>CSS attr Selector</title> <style type="text/css"> p[class] { color: #ff0000; } </style> </head> <body> <p class="one">This is first paragraph.</p> <p class="two">This is another paragraph.</p> </body> </html>
Preview