I'm trying to add an <a> and <img> so the actual text appears on my page. Not the link.
So I want the actual HTML to show on my page, like this:
Currently, a dead image appears... I thought <code> alone prevented this, and just showed the plain html?
Anyway, this is my current code, I want it to literally echo out <a href="/hello"><img style="" src="/hello.png" /></a> in plain text.
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
background-color: #f5f5f5;
margin: 20px;
padding: 20px;
color: #f9f9f9;
background-color: #222;
text-shadow: 0 1px 0 #000;
border-radius: 8px;
border-bottom: 1px solid #555;
box-shadow: 0 1px 5px rgba(0,0,0,0.4) inset, 0 0 20px rgba(0,0,0,0.2) inset;
font: 16px/24px 'Courier New', Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
}
<pre>
<code>
<a href="/hello"><img style="" src="/hello.png" /></a>
</code>
</pre>
I apologise if this question has been asked before, but I'm struggling to put my question into words to find a good answer.