UniteInnovations

Home / Blog / Tutorials

HTML Code Elements

HTML Computer Code <code></code>

Example: <p><code>a b c 1 2 3</code></p>

Result: a b c 1 2 3


HTML Keyboard Input <kbd></kbd>

Example: <p>To lock screen first press <kbd>Ctrl + Alt + Del</kbd></p>

Result: To lock screen first press Ctrl + Alt + Del


HTML For Program Output <samp></samp>

Example: <p>If you enter the wrong command you will receive a <samp>Error!</samp></p>

Result: If you enter the wrong command you will receive a Error!

HTML For Variables <var></var>

Einstein’s famous equation: <var>E</var> = <var>mc</var><sup>2</sup>.

Einstein’s famous equation: E = mc2.