• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Special Characters

In previous chapters, you’ve seen ways to add special quotation marks (using the <q> element), and I touched briefly on the use of the non-breaking space (&nbsp;). There are many other special characters you can add to your HTML document, although how to add them may not be readily apparent.

What do you do if you need to render a character that can’t be typed into a plain-text document? Or what about special characters, such as < and >, that XHTML uses as part of its own syntax? You add them using special entities that look much like the non-breaking space already discussed. This can be used to solve one thorny problem—how to actually display XHTML elements in an HTML document. For example, consider these two lines:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint