Nechtan Design
Client Login | Contact Us
P.O. Box 191
Sewickley, PA 15143
412.931.4663

The 5:30 Design Tip

Daily Tips on Web design that you can utilize in your Web site.

Tuesday, June 12, 2007

Character References

This may be a very mundane topic but one of importance to new designers. There are times when you will need to print characters on your page that are reserved for the markup language such as the greater than and less than signs. So how do you do this? You utilize character encodings.

There is a list at http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

It is quite simple. In this list you find the character you wish to use. You place the entity reference in your code where the character would be. If you want:

6 < 9

...
body tag
6 < 9
close body tag
...

This is just a simple example. You will see there are also references for many languages including Greek and Latin as well as many mathematical symbols. There is probably a way to print the character you need and this list will tell you how to do it.

Labels: , ,

0 Comments:

Post a Comment

<< Home

 

© This site and all its contents, exluding those attributed explicitly to others, are copyright Nechtan Design.