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.
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: character entities, HTML, XML

