You can display the code in bootstrap in two different ways.
If you are going to be displaying code inline, you should use the <code> tag.
you can use the unicode variants for the opening and closing tags − < and >.
Example of Code
<p>
<code><header></code> is wrapped as an inline element.
</p>
Output
<header> is wrapped as an inline element.
<pre> tag. If the code needs to be displayed as a standalone block element or if it has multiple lines, then you should use the <pre>
Example of Code
<pre>
The pre tag
is used to describe
the preformatted text.
</pre>
Output
The pre tag
is used to describe
the preformatted text.
