Good Practice With ASCII Characters

April 13, 2011 No Comments

When Writing HTML Pages Find Alternatives For These Characters

 

When creating a web page you sometimes need to use text that the browser will interpret as HTML syntax. For example: greater than, less than and ampersand. You might also find yourself needing to use special characters such as a copyright symbol or trademark symbol, maybe even just a simple nonbreaking space point. All of these are considered special in the realm of HTML and because of this they are given ASCII codes so that the browser can interpret the correct character. Here are some of the most common ASCII codes I use when developing a client’s website:

Char – Ascii Name – Number

< – &lt; – &#60;\r\n> – &gt; – &#62;\r\n& – &amp; – &#38;

Copyright – &copy; – &#169;

Trademark – null – &#8482;

There’s also a very good chart that I use regularly to keep track of all these ASCII codes so I don’t have to memorize all of them. I’ll link it at the end of this post but what I really want to know is do you developers out there already practice this?

 

http://www.ascii.cl/htmlcodes.htm


By – Alex Miller
 

Tags: , , , , , , , , , , ,

Site Seeing, Web Pointers

Sorry, the comment form is closed at this time.

Recent News

How To Spring Clean Your Website

How To Spring Clean Your Website

Published May 17, 2012
What is Inbound Marketing and How Will it Help Your Business Grow?

What is Inbound Marketing and How Will it Help Your Business Grow?

Published May 17, 2012
Get Some Help: Interior Design and Marketing

Get Some Help: Interior Design and Marketing

Published May 15, 2012
Organic Undies

Organic Undies

Published May 14, 2012
File Sharing is Holy

File Sharing is Holy

Published May 13, 2012
Unlearning Your Learning

Unlearning Your Learning

Published May 12, 2012
What does Eco-friendly Mean?

What does Eco-friendly Mean?

Published May 11, 2012
How To Hire A Contractor

How To Hire A Contractor

Published May 10, 2012
Get Involved: Anthony Smith 3 on 3 Basketball Tournament

Get Involved: Anthony Smith 3 on 3 Basketball Tournament

Published May 9, 2012
Tips For Aspiring Web Developers

Tips For Aspiring Web Developers

Published May 8, 2012
Mother’s Day vs. Mother Earth

Mother’s Day vs. Mother Earth

Published May 7, 2012
Artist Spotlight: Tara McPherson

Artist Spotlight: Tara McPherson

Published May 6, 2012



Follow

Get every new post delivered to your Inbox

Join other followers: