DevTools Tips

Categories: Supported by:

Apply CSS styles to console messages

The console.log output can be styled in DevTools using CSS.

console.log('%c Hello World', 'color: orange; font-size: 2em;');

Screenshot of a styled console message in Edge