HTML Dog

Skip to navigation

HTML Tag: code

Computer code — anything that a computer might typically recognize, such as some HTML or a file name.

Optional Attributes

Global attributes

Example


<p>Hey, luvvr, let's talk about the <code>code</code> tag.</p>

<pre><code class="html">
&lt;html lang="en"&gt;
    &lt;head&gt;
        &lt;title&gt;HTML, baby!&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;!-- indented code, etc. --&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>