ADS

How To Show Html To People

Have you ever tried to show HTML code to people, only to have it really operate?
For example, you type in
<b>bold</b> and you just get this:
bold
This is how people (including us) display HTML tags:
In the previous example, we used <b>bold</b> as the displayed code. This is how I wrote that:
&lt;b&gt;bold&lt;/b&gt;
Look complicated? It's not. Let's break it down.
The first part is
<b>
This is written as
&lt;b&gt;
Ever noticed how the things around the tags are greater and less than signs (<,>)? Well, that is used here. & l t ; is used for less than and & g t ; is used for greater than.
That's essentially all you need to know!
&lt; = <
&gt; = >

Now you can show people HTML on your website!

NOTE FROM NILS: In addition, & = &amp;

NOTE FROM GEOFFREY: To show people how to show people how to make HTML, remember to use &amp; as an &. So to write &lt; you would write &amp;lt;

Subscribe to receive free email updates:

ADS