Home
<!doctype html> <html> <head> <script src="https://d3js.org/d3.v4.min.js"></script> <style> .error { color: red } </style> </head> <body> <p>This is error.</p> <script> d3.select("p").classed('error', true); </script> </body> </html>
Result: