Skip to main content

Code Block

Insert raw HTML, CSS, or JavaScript. Tabs: Content, Styling, Animations, Advanced.

💡 Web dev tip: code belongs in pre + code

Code samples use <pre><code> so spacing is preserved and the text isn't parsed as HTML — the characters <, > and & must be escaped (&lt;, &gt;, &amp;) or the browser tries to render them. This block handles that for you. And never paste a real password or API key into a public example. MDN: the pre element

Live demo​

▶ See the Code Block live on the demos site — an interactive example you can click through.

Content​

Code Block options panel — Content tab
OptionNotes
CodeThe raw markup/script to output on the page

Styling​

Code Block options panel — Styling tab

Text Color, Background Color, and Margin & Padding.