Appendix F

Special Characters

Some characters are reserved in HTML; for example, you cannot use the greater-than and less-than signs or angle brackets within your text because the browser could mistake them for markup. HTML processors must support the five special characters listed in Table F-1.

Table F-1: Special Characters

Table bapp06-01

To write an element and attribute into your page so that the code is shown to the user rather than being processed by the browser (for example, as <div id="character">), you would write

<div id="character">

There is also a long list of special characters that HTML 4.0–aware processors should support. For these to appear in your document, you can use either the numerical code or the entity name. For example, to insert a copyright symbol, you can use either of the following:

© 2008
© 2013

The special characters have been split into the following sections:

  • Character Entity References for ISO 8859-1 Characters
  • Character Entity References for Symbols, Mathematical Symbols, and Greek Letters
  • Character Entity References for Markup-Significant and Internationalization Characters

They are taken from the W3C website at www.w3.org/TR/REC-html40/sgml/entities.html.

Character Entity References for ISO 8859-1 Characters

Tabular 340189bapp06-0001 Tabular 340189bapp06-0001b Tabular 340189bapp06-0001c Tabular 340189bapp06-0001d Tabular 340189bapp06-0001e Tabular 340189bapp06-0001f

Character Entity References for Symbols, Mathematical Symbols, and Greek Letters

Tabular 340189bapp06-0002 Tabular 340189bapp06-0002b Tabular 340189bapp06-0002c Tabular 340189bapp06-0002d Tabular 340189bapp06-0002e Tabular 340189bapp06-0002f Tabular 340189bapp06-0002g Tabular 340189bapp06-0002h

Character Entity References for Markup-Significant and Internationalization Characters

Tabular 340189bapp06-0003 Tabular 340189bapp06-0003b Tabular 340189bapp06-0003c
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset