Html Tips and Tricks

Tuesday, May 25, 2004

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;


NEED EXTRA HELP? HAVE A SUGGESTION? HAVE SOMETHING TO ADD? PLEASE POST COMMENTS WHILE LOOKING AT ALL THESE USEFUL HTML TIPS AND TRICKS. THANK YOU!

2 Comments:

  • By:Stonehaven
    Why use that to show people, wouldnt it be easier to just show them the easy way using the "<>" tags?

    By Anonymous Anonymous, at August 22, 2005  

  • If you type in <b> using the easy way, then nobody will see what you typed: it will just make text bold.

    By Blogger nilsmo, at August 30, 2005  

Post a Comment

<< Home


Hit Counter