I am building a simple html tutorial for my university . But I am not able to put the examples within the html file ! I tried <code></code> but it did not worked ! I searched google but no help from there .
I am building a simple html tutorial for my university . But I am
Share
You need to HTML escape any HTML special characters.
To conserve the indentation, you should wrap it in
<pre>tags.To format it as code visually, you should also wrap it in
<code>tags.The results looks like this:
This is rendered as: