ngoclb

Fullstack Developer and Freelancer

February 28, 2024

console.delight - Did you know console could also render CSS, SVGs and HTML?

Everyone knows you can use console.log() to log text and variables to the console. Did you know you could also render (limited) CSS, SVGs, and even HTML in it?!? I didn’t! It’s a neat technique that can delight the curious and further your brand for curious users. If you’re in a browser other than Safari, open up the DevTools console to see some examples of what we can create!