How can I see my code in my browser?

You’ll need to convert all your < to &lt; and all your > to &gt; and wrap everything in <pre> and </pre> tags. Like so:

<pre>
  &lt;!DOCTYPE html&gt;
    &lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;Page Title&lt;/title&gt;
    &lt;body&gt;

    &lt;h1&gt;This is a Heading&lt;/h1&gt;
    &lt;p&gt;This is a paragraph.&lt;/p&gt;

    &lt;/body&gt;
    &lt;/html&gt;
</pre>

Leave a Comment