使用 <code>
。
Hello world!
<p>这是行内代码示例:<code>Hello world!</code></p>
使用 .code
。
<h2 class="code">Hello code!</h2>
使用 <kbd>
。
<p>按 <kbd>Ctrl + F9</kbd> 来截取屏幕。</p>
使用 <pre>
。
<html>
<body>
<h1>Hello <strong>MZUI</strong>!</h1>
</body>
</html>
<pre><code><html>
<body>
<h1>Hello <strong>MZUI</strong>!</h1>
</body>
</html></code></pre>
代码高亮推荐方案:
<html>
<body>
<h1>Hello <strong>MZUI</strong>!</h1>
</body>
</html>