Code Block
Make code snippets more manageable.
console.log("Boba is great!");
<div class="code-block">
<pre class="code">
<code class="language-javascript">
console.log("Boba is great!");
</code>
</pre>
</div>
Inline Code
Draw attention to inline code snippets using the .inline
class with the code
tag.
This is an
.example-class
.
This is an <code class="inline">.example-class</code>.
Variables
Use the var
tag to make mathematical variables and expressions more distinct.
y = mx + b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
Keyboard Input
Highlight short user inputs and keyboard shortcuts using the kbd
tag.
Save your work by pressing Cmd/Ctrl + s.
Save your work by pressing <kbd>Cmd/Ctrl + s</kbd>.
Sample Output
Use the samp
tag to distinguish sample output from a program.
This is a sample output from running a program.
<samp>This is a sample output from running a program.</samp>