XHTML - SPLessons

XHTML Special Characters

Home > Lesson > Chapter 15
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

XHTML Special Characters

XHTML Special Characters

shape Introduction

This chapter demonstrates about the XHTML Special Characters which are not present in the keys of standard English key board following are the concepts are covered in this chapter.
  • About Special characters

About Special characters

shape Description

The XHTML Special Symbols reference outline was made for Web Developers and Designers to get a quick overlook to the list of most asked for Special Characters and Symbols in XHTML. The image below demonstrates the difference between the special characters and Normal characters. For the best designing practices, Users appear to incline toward the "fancy" characters for single quotes, double quotes, em dashes, en dashes, C, and ellipses. Since User need to get satisfaction of the client with website design, it is important to embed these special characters in the XHTML code. The code below demonstrates to display the special characters as shown. [html] <!DOCTYPE html> <html> <body> <p>I will display &euro;</p> <p>I will display &+#8364;</p> <p>I will display &+#x20AC;</p> </body> </html> [/html] Result By running the above code in a preferred browser user can get the following out put as shown in below image. In order to add the special symbols which are not presented in normal key board user need to use the entity name if entity name is not present then user need to use the entity number i.e decimal reference. Some of the symbols are not available on keyboard. These symbols are defined in XHTML with some characters those are given below.
Char Number Combinations Entity Description
&+#8706; &part; PARTIAL DIFFERENTIAL
&+#8707; &exist; THERE EXISTS
&+#8712; &isin; ELEMENT OF
&+#8711; &nabla; NABLA
&+#8709; &empty; EMPTY SETS
&+#8713; &notin; NOT AN ELEMENT OF
&+#8721; &sum; N-ARY SUMMATION
&+#8719; &prod; N-ARY PRODUCT
&+#8715; &ni; CONTAINS AS MEMBER
User can add some more entities which get the support of xhtml is listed Below.Symbols are not available on keyboard. These symbols are defined in XHTML with some characters those are given below.
Char Number Combinations Entity Description
© &+#169; &copy; COPYRIGHT SIGN
® &+#174; &reg; REGISTERED SIGN
&+#8592; &larr; LEFTWARDS ARROW
&+#8482; &trade; TRADEMARK
&+#8364; &euro; EURO SIGN
&+#8593; &uarr; UPWARDS ARROW
&+#9824; &spades; BLACK SPADE SUIT
&+#8595; &darr; DOWNWARDS ARROW
&+#8594; &rarr; RIGHTWARDS ARROW
&+#9827; &clubs; BLACK CLUB SUIT
&+#9829; &hearts; BLACK HEART SUIT
&+#9830; &diams; BLACK DIAMOND SUIT

Summary

shape Key Points

  • By using entities user can include special symbols.
  • User can use entity name or decimal value.
  • Special symbols are not available on key board.