On this page
  1. <code>
  2. Summary
  3. Notes & Best Practices
  4. Example

<code>

Prev: `<dl>` | Up: text | Next: `<time>`
Rel: text, Text & Lists Guide
Ref: MDN Web Docs — <code>
Tags: #public #web #html #elements #text #tier/core


Summary

Inline code fragment; wrap in <pre> for multi-line code blocks.

Notes & Best Practices

Example

<p>Run <code>python3 -m pytest</code> to execute the suite.</p>
<pre><code>def add(a, b):
    return a + b</code></pre>

Linked from

Related notes