HTML and inline JavaScript

JavaScript

Tagged template literals

Set the type attribute to js, jsx or javascript when using tagged template literals.

CSS

Rendered code

Use the boolean attribute render to render the code inside the <template> tag.

Copy to clipboard button

Use the boolean attribute copy-clipboard-button to display a "copy" button on the top right corner.

Change content dynamically

Custom background colors