Currently working on a technical documentation page about HTML using the MDN page as reference and there’s a bit where I need to display various XML codes like < and " ON the page. Only problem is I can’t find a way to write that in the code and have it actually be displayed on the page without it rendering a less-than or quote symbol.
Heres the HTML and CSS code I’m using on my page:
HTML
<div class="code-container">
<pre>
<code>
<
</code>
</pre>
</div>
CSS
.code-container{
max-width: 80%;
background-color: #434546;
margin: 25px 0 0 40px;
min-height: 50px;
border-radius: 5px;
text-align: left;
height: auto;
vertical-align: middle;
}
pre code{
font-family: monospace;
font-size: 1.09rem;
}
Any help with this would be awesome.