SEARCH
Get Our Free Ebook
Beginners Guide to HTML

  Tutorials HTML and CSS Tutorials Displaying Special Characters

Displaying Special Characters

Jeff Singer Tutorials Nov 17, 2004

Displaying Special Characters
Why does putting an & in my text mess up my page?

For the full list of displayable characters, check out the ASCII CHART.

Example

I had to learn this one early- I was the MIS Director for Jacoby & Meyers!

I want to use the words, "me & you" so that they appear
just like that. I also want to do a smiley face ;->
or maybe a sad face ;-<

Some characters like > & < have special meaning to HTML. Therefore we must use special codes

& is &amp;, < is &lt;, and > is &gt;

Source code

I had to learn this one early- I was the MIS Director for
Jacoby &amp; Meyers!

I want to use the words, "me &amp; you" so that they appear
just like that. I also want to do a smiley face ;-&gt;
or maybe a sad face ;-&lt;

subscribe to newsletter