Code

Code is used for styling inline and multiline code snippets.

Inline code

<!-- inline code -->
<code>code</code>

For inline code, you can use the <code> element.

Code snippet

For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. The data-lang attribute is rendered as the language name in the top right.

<!-- code snippets -->
<button class="btn">
  Submit
</button>